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

fix(ngAnimate): Change to falsy value in addClass and removeClass #11273

Closed
wants to merge 1 commit into from

Conversation

wesleycho
Copy link
Contributor

  • Change addClass & removeClass to pass in string to setClass so
    $$setClassImmediately does not trigger due to arrays always being
    truthy

This fixes #11268 .

@wesleycho wesleycho force-pushed the fix/set-class-arg branch from 9dd1c47 to a49afd4 Compare March 8, 2015 16:06
@wesleycho wesleycho changed the title fix(ngAnimate) fix(ngAnimate): Change to falsy value Mar 8, 2015
@wesleycho wesleycho changed the title fix(ngAnimate): Change to falsy value fix(ngAnimate): Change to falsy value in addClass and removeClass Mar 8, 2015
@wesleycho wesleycho force-pushed the fix/set-class-arg branch 2 times, most recently from abbc51b to 62ab63b Compare March 8, 2015 16:07
- 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
@wesleycho wesleycho force-pushed the fix/set-class-arg branch from 62ab63b to dc35ce6 Compare March 8, 2015 16:14
@wesleycho
Copy link
Contributor Author

Closing, this does not look quite right - need to think some more.

@wesleycho wesleycho closed this Mar 8, 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.

animate.js removeClass seems to call setClass with a wrong type
2 participants