mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-31 23:21:42 +03:00
code style
This commit is contained in:
parent
fb7c91acd2
commit
7f42dfc032
@ -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(){};
|
||||
|
||||
|
@ -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] );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user