Commit b9f2131a authored by jaubourg's avatar jaubourg

Fixes potential collisions between jsonp requests from different jQuery...

Fixes potential collisions between jsonp requests from different jQuery instances by prefixing the jsonp callback name with the jQuery expando rather than with "jsonp".
parent 0a0cff9d
...@@ -7,7 +7,7 @@ var jsc = jQuery.now(), ...@@ -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++ );
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment