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 ) {
onSuccess( request );
} else {
$.console.log("AJAX request returned %s: %s", request.status, url);
$.console.log( "AJAX request returned %s: %s", request.status, url );
if ( $.isFunction( onError ) ) {
onError( request );
@ -1338,7 +1338,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
request.open( "GET", url, true );
request.send( null );
} 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(){};

View File

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