From dc35ce6387e746602e7471cde89abcca22e3aab0 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sun, 8 Mar 2015 09:02:58 -0700 Subject: [PATCH] fix(ngAnimate): Change to falsy value in addClass and removeClass - Change addClass & removeClass to pass in null to setClass so $$setClassImmediately does not trigger due to arrays always being truthy - Change to use `null` instead - Revert to string --- src/ngAnimate/animate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js index 71ed2ec4d0d5..d80d7d735371 100644 --- a/src/ngAnimate/animate.js +++ b/src/ngAnimate/animate.js @@ -1077,7 +1077,7 @@ angular.module('ngAnimate', ['ng']) * @return {Promise} the animation callback promise */ addClass: function(element, className, options) { - return this.setClass(element, className, [], options); + return this.setClass(element, className, '', options); }, /** @@ -1111,7 +1111,7 @@ angular.module('ngAnimate', ['ng']) * @return {Promise} the animation callback promise */ removeClass: function(element, className, options) { - return this.setClass(element, [], className, options); + return this.setClass(element, '', className, options); }, /**