mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
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:
committed by
Michał Gołębiowski-Owczarek
parent
b220f6df88
commit
110802c7f2
2
src/effects.js
vendored
2
src/effects.js
vendored
@@ -538,7 +538,7 @@ jQuery.fn.extend( {
|
||||
clearQueue = type;
|
||||
type = undefined;
|
||||
}
|
||||
if ( clearQueue && type !== false ) {
|
||||
if ( clearQueue ) {
|
||||
this.queue( type || "fx", [] );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user