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

2
src/effects.js vendored
View File

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