-
Notifications
You must be signed in to change notification settings - Fork 27.4k
feat($animate): allow directives to cancel animation events #7722
Conversation
como estas matias |
does the delegate really need to return noop for everything? it looks like ngAnimate will use noop if the value is falsy anyways |
Yes, but when ngAnimate is not included then the core $animate service should still return a function. |
|
||
function track(type) { | ||
return function(element, add, remove, done) { | ||
done = done || remove || add; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the purpose of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setClass = 4 params (done is the last one)
addClass / removeClass = 3 params (done is the one)
enter / leave / move = 2 params (done is the last one)
So it's basically finding the done function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok :)
lgtm |
MERGED as ca75279 |
No description provided.