Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit a49afd4

Browse files
committed
fix(ngAnimate): Change to falsy value
- Change addClass & removeClass to pass in empty string to setClass so $$setClassImmediately does not trigger due to arrays always being truthy - Change to use `null` instead
1 parent f227f7a commit a49afd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngAnimate/animate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ angular.module('ngAnimate', ['ng'])
10771077
* @return {Promise} the animation callback promise
10781078
*/
10791079
addClass: function(element, className, options) {
1080-
return this.setClass(element, className, [], options);
1080+
return this.setClass(element, className, null, options);
10811081
},
10821082

10831083
/**
@@ -1111,7 +1111,7 @@ angular.module('ngAnimate', ['ng'])
11111111
* @return {Promise} the animation callback promise
11121112
*/
11131113
removeClass: function(element, className, options) {
1114-
return this.setClass(element, [], className, options);
1114+
return this.setClass(element, null, className, options);
11151115
},
11161116

11171117
/**

0 commit comments

Comments
 (0)