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:
jaubourg 2011-01-29 01:25:27 +01:00
parent 0a0cff9d29
commit b9f2131a9d

View File

@ -7,7 +7,7 @@ var jsc = jQuery.now(),
jQuery.ajaxSetup({
jsonp: "callback",
jsonpCallback: function() {
return "jsonp" + jsc++;
return jQuery.expando + "_" + ( jsc++ );
}
});