git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug #1584, ajaxStop/complete calls weren't called for JSONP requests.
[jquery.git]
/
src
/
ajax.js
diff --git
a/src/ajax.js
b/src/ajax.js
index
db877ab
..
a0bcf55
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-78,7
+78,7
@@
jQuery.fn.extend({
var val = jQuery(this).val();
return val == null ? null :
val.constructor == Array ?
var val = jQuery(this).val();
return val == null ? null :
val.constructor == Array ?
- jQuery.map( val, function(i, val){
+ jQuery.map( val, function(val, i){
return {name: elem.name, value: val};
}) :
{name: elem.name, value: val};
return {name: elem.name, value: val};
}) :
{name: elem.name, value: val};
@@
-190,6
+190,7
@@
jQuery.extend({
window[ jsonp ] = function(tmp){
data = tmp;
success();
window[ jsonp ] = function(tmp){
data = tmp;
success();
+ complete();
// Garbage collect
window[ jsonp ] = undefined;
try{ delete window[ jsonp ]; } catch(e){}
// Garbage collect
window[ jsonp ] = undefined;
try{ delete window[ jsonp ]; } catch(e){}