mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +03:00
Better match project style
This commit is contained in:
parent
496b7d757b
commit
5eccdfee98
@ -1315,10 +1315,10 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
|
|
||||||
request.onreadystatechange = function() {
|
request.onreadystatechange = function() {
|
||||||
// 4 = DONE (https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#Properties)
|
// 4 = DONE (https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#Properties)
|
||||||
if ( request.readyState == 4) {
|
if ( request.readyState == 4 ) {
|
||||||
request.onreadystatechange = function(){};
|
request.onreadystatechange = function(){};
|
||||||
|
|
||||||
if (request.status == 200) {
|
if ( request.status == 200 ) {
|
||||||
onSuccess( request );
|
onSuccess( request );
|
||||||
} else {
|
} else {
|
||||||
onError( request );
|
onError( request );
|
||||||
@ -1335,7 +1335,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
request.onreadystatechange = function(){};
|
request.onreadystatechange = function(){};
|
||||||
request = null;
|
request = null;
|
||||||
|
|
||||||
onError(request, e);
|
onError( request, e );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user