mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 13:08:11 -05:00
remove redundant condition
This commit is contained in:
@@ -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 ) ?
|
||||
|
||||
Reference in New Issue
Block a user