From 80ce8e42e83b55c36c7a29a08b0f34cdcaee993e Mon Sep 17 00:00:00 2001 From: Dumitru Uzun Date: Wed, 23 Mar 2016 14:59:32 +0200 Subject: [PATCH] Logic issue fixed ```js Boolean(easing || easing && typeof easing == 'string' ) ``` is equivalent with ```js Boolean(easing) ``` So i quess the correct form is: ```js easing && typeof easing == 'string' ``` --- dom/animate/animate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/animate/animate.js b/dom/animate/animate.js index e46addb9..feca9a29 100644 --- a/dom/animate/animate.js +++ b/dom/animate/animate.js @@ -68,7 +68,7 @@ steal('jquery', function ($) { // Animating empty properties $.isEmptyObject(props) || // We can't do custom easing - (easing || easing && typeof easing == 'string') || + (easing && typeof easing == 'string') || // Second parameter is an object - we can only handle primitives $.isPlainObject(ops) || // Inline and non elements