]> source.dussan.org Git - jquery.git/commitdiff
Fixes potential collisions between jsonp requests from different jQuery instances...
authorjaubourg <j@ubourg.net>
Sat, 29 Jan 2011 00:25:27 +0000 (01:25 +0100)
committerjaubourg <j@ubourg.net>
Sat, 29 Jan 2011 00:25:27 +0000 (01:25 +0100)
src/ajax/jsonp.js

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