mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixes potential collisions between jsonp requests from different jQuery instances by prefixing the jsonp callback name with the jQuery expando rather than with "jsonp".
This commit is contained in:
parent
0a0cff9d29
commit
b9f2131a9d
@ -7,7 +7,7 @@ var jsc = jQuery.now(),
|
|||||||
jQuery.ajaxSetup({
|
jQuery.ajaxSetup({
|
||||||
jsonp: "callback",
|
jsonp: "callback",
|
||||||
jsonpCallback: function() {
|
jsonpCallback: function() {
|
||||||
return "jsonp" + jsc++;
|
return jQuery.expando + "_" + ( jsc++ );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user