Commit 81985c78 authored by John Resig's avatar John Resig

Fixed a typo with commit [6457].

parent 7175b2ff
......@@ -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") + "=?";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment