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

(cherry picked from commit 110802c)
  • Loading branch information
wonseop authored and mgol committed Sep 25, 2019
1 parent 56e73e0 commit 30f5c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ jQuery.fn.extend( {
clearQueue = type;
type = undefined;
}
if ( clearQueue && type !== false ) {
if ( clearQueue ) {
this.queue( type || "fx", [] );
}

Expand Down

0 comments on commit 30f5c6c

Please sign in to comment.