]> source.dussan.org Git - jquery.git/commit
Effect: Fix a unnecessary conditional statement in .stop()
authorWonseop Kim <wonseop.kim@samsung.com>
Wed, 1 May 2019 12:57:55 +0000 (21:57 +0900)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 25 Sep 2019 23:14:38 +0000 (01:14 +0200)
commit30f5c6c3ee3a128c7b75a771d4cb8a5b750ae17d
tree93e774ed8f9cb996bdcce117515c8029eb40d2d6
parent56e73e0c4ae908c853c986aadeda7cfcf2df4f6f
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 110802c7f22b677ef658963aa95ebdf5cb9c5573)
src/effects.js