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 b9f2131a9da53fff60549e87428a0efe43f9e80a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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++ );
}
});

0 comments on commit b9f2131

Please sign in to comment.