git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a0cff9
)
Fixes potential collisions between jsonp requests from different jQuery instances...
author
jaubourg
<j@ubourg.net>
Sat, 29 Jan 2011 00:25:27 +0000
(
01:25
+0100)
committer
jaubourg
<j@ubourg.net>
Sat, 29 Jan 2011 00:25:27 +0000
(
01:25
+0100)
src/ajax/jsonp.js
patch
|
blob
|
history
diff --git
a/src/ajax/jsonp.js
b/src/ajax/jsonp.js
index
16a4c2f
..
cbe3680
100644
(file)
--- 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++ );
}
});