This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
animate.js removeClass seems to call setClass with a wrong type #11268
Closed
Description
I was getting tracebacks in my angular application.
I tracked it down to what I believe is removeClass calling setClass wrong:
https://github.com/angular/angular.js/blob/master/src/ngAnimate/animate.js#L1114
shows
return this.setClass(element, [], className, options);
while the second argument to setClass is supposed to be a string according to:
- @param {string} add the CSS classes which will be added to the element
but instead a list ([]) is passed in; which throws an error in a foreach:
forEach(cssClasses.split(' '), function(cssClass) {
where this fails because you can't call split on an empty list.