From 5eccdfee9801bd19bec52695136fe8819b9fee8e Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Wed, 26 Jun 2013 17:07:37 -0400 Subject: [PATCH] Better match project style --- src/openseadragon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index 905259a9..5acc4468 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -1315,10 +1315,10 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){ request.onreadystatechange = function() { // 4 = DONE (https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#Properties) - if ( request.readyState == 4) { + if ( request.readyState == 4 ) { request.onreadystatechange = function(){}; - if (request.status == 200) { + if ( request.status == 200 ) { onSuccess( request ); } else { onError( request ); @@ -1335,7 +1335,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){ request.onreadystatechange = function(){}; request = null; - onError(request, e); + onError( request, e ); } },