Skip to content

Commit

Permalink
Effect: Fix a unnecessary conditional statement in .stop()
Browse files Browse the repository at this point in the history
Because of the above conditional, the 'type' variable has a value of type
'string' or undefined. Therefore, boolean comparisons for 'type' variable
is always unnecessary because it return true. The patch removed the
unnecessary conditional statement.

Fixes gh-4374
Closes gh-4375
  • Loading branch information
wonseop authored and mgol committed May 1, 2019
1 parent b220f6d commit 110802c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/effects.js
Expand Up @@ -538,7 +538,7 @@ jQuery.fn.extend( {
clearQueue = type;
type = undefined;
}
if ( clearQueue && type !== false ) {
if ( clearQueue ) {
this.queue( type || "fx", [] );
}

Expand Down

0 comments on commit 110802c

Please sign in to comment.