From 110802c7f22b677ef658963aa95ebdf5cb9c5573 Mon Sep 17 00:00:00 2001 From: Wonseop Kim Date: Wed, 1 May 2019 21:57:55 +0900 Subject: [PATCH] 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 --- src/effects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", [] ); } -- 2.39.5