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({
|
||||
jsonp: "callback",
|
||||
jsonpCallback: function() {
|
||||
return "jsonp" + jsc++;
|
||||
return jQuery.expando + "_" + ( jsc++ );
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue