You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
// Extract from src/ngAnimate/animateJs.js#L241varklass=classes[i],animationFactory=$animateProvider.$$registeredAnimations[klass];if(animationFactory&&!flagMap[klass]){matches.push($injector.get(animationFactory));flagMap[klass]=true;}
My element has a CSS class named "filter" so, when doing: animationFactory = $animateProvider.$$registeredAnimations[klass];
the animationFactory variable ends up being a reference to Array.prototype.filter (because $$registeredAnimationsis of type Array). After that, I got an unknown provider exception because it calls $injector.get() with the filter function.
I already changed the CSS class, but shouldn't $$registeredAnimations be just a plain object (like Object.create(null)) instead of an Array if it's going to be used that way?