From b9f2131a9da53fff60549e87428a0efe43f9e80a Mon Sep 17 00:00:00 2001 From: jaubourg Date: Sat, 29 Jan 2011 01:25:27 +0100 Subject: [PATCH] Fixes potential collisions between jsonp requests from different jQuery instances by prefixing the jsonp callback name with the jQuery expando rather than with "jsonp". --- src/ajax/jsonp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax/jsonp.js b/src/ajax/jsonp.js index 16a4c2fd2..cbe36804b 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++ ); } }); -- 2.39.5