mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04: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:
@@ -7,7 +7,7 @@ var jsc = jQuery.now(),
|
||||
jQuery.ajaxSetup({
|
||||
jsonp: "callback",
|
||||
jsonpCallback: function() {
|
||||
return "jsonp" + jsc++;
|
||||
return jQuery.expando + "_" + ( jsc++ );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user