Skip to content

Commit

Permalink
remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Apr 22, 2012
1 parent 2d1247a commit 180a997
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ajax/jsonp.js
Expand Up @@ -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 ) ?
Expand Down

0 comments on commit 180a997

Please sign in to comment.