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 16a4c2f..cbe3680 100644 (file)
@@ -7,7 +7,7 @@ var jsc = jQuery.now(),
 jQuery.ajaxSetup({
        jsonp: "callback",
        jsonpCallback: function() {
-               return "jsonp" + jsc++;
+               return jQuery.expando + "_" + ( jsc++ );
        }
 });