Fixed a typo with commit [6457].

This commit is contained in:
John Resig 2009-07-19 17:02:01 +00:00
parent 7175b2ffab
commit 81985c7878

View file

@ -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") + "=?";