From: jaubourg Date: Sat, 29 Jan 2011 00:25:27 +0000 (+0100) Subject: Fixes potential collisions between jsonp requests from different jQuery instances... X-Git-Url: http://git.asbjorn.it/?p=jquery.git;a=commitdiff_plain;h=b9f2131a9da53fff60549e87428a0efe43f9e80a Fixes potential collisions between jsonp requests from different jQuery instances by prefixing the jsonp callback name with the jQuery expando rather than with "jsonp". --- diff --git a/src/ajax/jsonp.js b/src/ajax/jsonp.js index 16a4c2f..cbe3680 100644 --- a/src/ajax/jsonp.js +++ b/src/ajax/jsonp.js @@ -7,7 +7,7 @@ var jsc = jQuery.now(), jQuery.ajaxSetup({ jsonp: "callback", jsonpCallback: function() { - return "jsonp" + jsc++; + return jQuery.expando + "_" + ( jsc++ ); } });