code style

This commit is contained in:
Chris Adams 2013-06-28 15:01:56 -04:00
parent fb7c91acd2
commit 7f42dfc032
2 changed files with 7 additions and 7 deletions

View File

@ -1325,7 +1325,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
if ( request.status == 200 ) { if ( request.status == 200 ) {
onSuccess( request ); onSuccess( request );
} else { } else {
$.console.log("AJAX request returned %s: %s", request.status, url); $.console.log( "AJAX request returned %s: %s", request.status, url );
if ( $.isFunction( onError ) ) { if ( $.isFunction( onError ) ) {
onError( request ); onError( request );
@ -1338,7 +1338,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
request.open( "GET", url, true ); request.open( "GET", url, true );
request.send( null ); request.send( null );
} catch (e) { } catch (e) {
$.console.log("%s while making AJAX request: %s", e.name, e.message); $.console.log( "%s while making AJAX request: %s", e.name, e.message );
request.onreadystatechange = function(){}; request.onreadystatechange = function(){};

View File

@ -179,7 +179,7 @@ $.Viewer = function( options ) {
$.addClass( errorDiv, "modal-dialog error" ); $.addClass( errorDiv, "modal-dialog error" );
errorDiv.appendChild( document.createTextNode( msg ) ); errorDiv.appendChild( document.createTextNode( msg ) );
_this.container.appendChild( $.makeCenteredNode(errorDiv) ); _this.container.appendChild( $.makeCenteredNode( errorDiv ) );
}); });
$.ControlDock.call( this, options ); $.ControlDock.call( this, options );
@ -428,10 +428,10 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
$TileSource, $TileSource,
options; options;
if (this.container) { if ( this.container ) {
var dialogs = this.container.querySelectorAll(".modal-dialog"); var dialogs = this.container.querySelectorAll( ".modal-dialog" );
for (var i = 0; i < dialogs.length; i++) { for ( var i = 0; i < dialogs.length; i++ ) {
dialogs[i].parentNode.remove(dialogs[i]); dialogs[i].parentNode.remove( dialogs[i] );
} }
} }