Skip to content
Permalink
Browse files
Fixes potential collisions between jsonp requests from different jQue…
…ry instances by prefixing the jsonp callback name with the jQuery expando rather than with "jsonp".
  • Loading branch information
jaubourg committed Jan 29, 2011
1 parent 0a0cff9 commit b9f2131
Showing 1 changed file with 1 addition and 1 deletion.
@@ -7,7 +7,7 @@ var jsc = jQuery.now(),
jQuery.ajaxSetup({
jsonp: "callback",
jsonpCallback: function() {
return "jsonp" + jsc++;
return jQuery.expando + "_" + ( jsc++ );
}
});

0 comments on commit b9f2131

Please sign in to comment.