mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
remove redundant condition
This commit is contained in:
parent
2d1247a413
commit
180a997da5
@ -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 ) ?
|
||||
|
Loading…
Reference in New Issue
Block a user