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 110802c7f2)
This commit is contained in:
Wonseop Kim 2019-05-01 21:57:55 +09:00 committed by Michał Gołębiowski-Owczarek
parent 56e73e0c4a
commit 30f5c6c3ee

2
src/effects.js vendored
View File

@ -542,7 +542,7 @@ jQuery.fn.extend( {
clearQueue = type;
type = undefined;
}
if ( clearQueue && type !== false ) {
if ( clearQueue ) {
this.queue( type || "fx", [] );
}