Bug #1584, ajaxStop/complete calls weren't called for JSONP requests.
authorJohn Resig <jeresig@gmail.com>
Sat, 15 Sep 2007 00:35:16 +0000 (00:35 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 15 Sep 2007 00:35:16 +0000 (00:35 +0000)
src/ajax.js

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