Better match project style

This commit is contained in:
Chris Adams 2013-06-26 17:07:37 -04:00
parent 496b7d757b
commit 5eccdfee98

View File

@ -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 );
} }
}, },