Bug #1584, ajaxStop/complete calls weren't called for JSONP requests.

This commit is contained in:
John Resig 2007-09-15 00:35:16 +00:00
parent 6d71a10ed2
commit d9a3b133f1

View file

@ -190,6 +190,7 @@ jQuery.extend({
window[ jsonp ] = function(tmp){ window[ jsonp ] = function(tmp){
data = tmp; data = tmp;
success(); success();
complete();
// Garbage collect // Garbage collect
window[ jsonp ] = undefined; window[ jsonp ] = undefined;
try{ delete window[ jsonp ]; } catch(e){} try{ delete window[ jsonp ]; } catch(e){}