From 464428cef723a94ce548878c5673734e963856ca Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Fri, 28 Jun 2013 13:59:59 -0400 Subject: [PATCH] makeAjaxRequest: don't set request to null Setting onreadystatechange can avoid the possibility of it somehow being called twice but there's no point in nulling the request right before we let the GC collect it. --- src/openseadragon.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index 12c11ade..4f4e9752 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -1341,7 +1341,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){ $.console.log("%s while making AJAX request: %s", e.name, e.message); request.onreadystatechange = function(){}; - request = null; if ($.isFunction(onError)) { onError( request, e );