Skip to content
Permalink
Browse files
Effect: Fix a unnecessary conditional statement in .stop()
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 30f5c6c3ee3a128c7b75a771d4cb8a5b750ae17d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -542,7 +542,7 @@ jQuery.fn.extend( {
clearQueue = type;
type = undefined;
}
if ( clearQueue && type !== false ) {
if ( clearQueue ) {
this.queue( type || "fx", [] );
}

0 comments on commit 30f5c6c

Please sign in to comment.