code style

This commit is contained in:
Chris Adams 2013-06-28 14:54:44 -04:00
parent 7dcf662fdd
commit fb7c91acd2

View File

@ -1313,7 +1313,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
makeAjaxRequest: function( url, onSuccess, onError ) { makeAjaxRequest: function( url, onSuccess, onError ) {
var request = $.createAjaxRequest(); var request = $.createAjaxRequest();
if (!$.isFunction(onSuccess)) { if ( !$.isFunction( onSuccess ) ) {
throw new Error( "makeAjaxRequest requires a success callback" ); throw new Error( "makeAjaxRequest requires a success callback" );
} }
@ -1327,7 +1327,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
} 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 );
} }
} }
@ -1342,7 +1342,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
request.onreadystatechange = function(){}; request.onreadystatechange = function(){};
if ($.isFunction(onError)) { if ( $.isFunction( onError ) ) {
onError( request, e ); onError( request, e );
} }
} }