Fixed a typo with commit [6457].
authorJohn Resig <jeresig@gmail.com>
Sun, 19 Jul 2009 17:02:01 +0000 (17:02 +0000)
committerJohn Resig <jeresig@gmail.com>
Sun, 19 Jul 2009 17:02:01 +0000 (17:02 +0000)
src/ajax.js

index a41de4c..fe272e7 100644 (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") + "=?";