mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
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:
parent
db38b71dd9
commit
464428cef7
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user