diff --git a/src/ajax/jsonp.js b/src/ajax/jsonp.js index 7b2ac4929e..6b82b82626 100644 --- a/src/ajax/jsonp.js +++ b/src/ajax/jsonp.js @@ -28,8 +28,7 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { rjsonp.test( data ); // Handle iff the expected data type is "jsonp" or we have a parameter to set - if ( s.dataTypes[ 0 ] === "jsonp" || hasCallback && - ( replaceInUrl || replaceInData ) ) { + if ( s.dataTypes[ 0 ] === "jsonp" || replaceInUrl || replaceInData ) { // Get callback name, remembering preexisting value associated with it callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?