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.
This commit is contained in:
Chris Adams 2013-06-28 13:59:59 -04:00
parent db38b71dd9
commit 464428cef7

View File

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