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:
7175b2f
)
Fixed a typo with commit [6457].
author
John Resig
<jeresig@gmail.com>
Sun, 19 Jul 2009 17:02:01 +0000
(17:02 +0000)
committer
John Resig
<jeresig@gmail.com>
Sun, 19 Jul 2009 17:02:01 +0000
(17:02 +0000)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
a41de4c
..
fe272e7
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-187,7
+187,7
@@
jQuery.extend({
// Handle JSONP Parameter Callbacks
if ( s.dataType == "jsonp" ) {
if ( type == "GET" ) {
- if ( jsre.test( !s.url ) )
+ if ( !jsre.test( s.url ) )
s.url += (/\?/.test( s.url ) ? "&" : "?") + (s.jsonp || "callback") + "=?";
} else if ( !s.data || !jsre.test(s.data) )
s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";