diff options
author | Wonseop Kim <wonseop.kim@samsung.com> | 2019-05-01 21:57:55 +0900 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-05-01 14:57:55 +0200 |
commit | 110802c7f22b677ef658963aa95ebdf5cb9c5573 (patch) | |
tree | 6b7e5aa75c49bd4068e5aea8eaab331d34225605 /src | |
parent | b220f6df88d34dd908f55d57417fcec377787e5c (diff) | |
download | jquery-110802c7f22b677ef658963aa95ebdf5cb9c5573.tar.gz jquery-110802c7f22b677ef658963aa95ebdf5cb9c5573.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/effects.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js index 147aa065f..a65283e28 100644 --- a/src/effects.js +++ b/src/effects.js @@ -538,7 +538,7 @@ jQuery.fn.extend( { clearQueue = type; type = undefined; } - if ( clearQueue && type !== false ) { + if ( clearQueue ) { this.queue( type || "fx", [] ); } |