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

fix($animate): make sure the JS animation lookup is an object lookup #11640

Closed
wants to merge 1 commit into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Apr 17, 2015

The lookup type was an array before, but it should be an empty object.

Closes #11619

provider = $animateProvider;
});
inject(function() {
expect(provider.$$registeredAnimations['filter']).toBeFalsy();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check for hasOwnProperty instead, it's more generic and also add a comment that we are testing with a well known property name that is usually on objects or arrays, we must ensure that we don't create collisions with them

The lookup type was an array before, but it should be an empty object.

Closes angular#11619
@matsko
Copy link
Contributor Author

matsko commented Apr 17, 2015

Merged as 103a39c

@matsko matsko closed this Apr 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ngAnimate: lookUpAnimations function breaks if CSS class is an Array.prototype function name.
3 participants