mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00: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
(cherry picked from commit 110802c7f2
)
This commit is contained in:
parent
56e73e0c4a
commit
30f5c6c3ee
2
src/effects.js
vendored
2
src/effects.js
vendored
@ -542,7 +542,7 @@ jQuery.fn.extend( {
|
||||
clearQueue = type;
|
||||
type = undefined;
|
||||
}
|
||||
if ( clearQueue && type !== false ) {
|
||||
if ( clearQueue ) {
|
||||
this.queue( type || "fx", [] );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user