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

feat($animate): allow directives to cancel animation events #7722

Closed
wants to merge 1 commit into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Jun 6, 2014

No description provided.

@mary-poppins
Copy link

como estas matias

matsko added a commit to matsko/angular.js that referenced this pull request Jun 6, 2014
@caitp
Copy link
Contributor

caitp commented Jun 6, 2014

does the delegate really need to return noop for everything? it looks like ngAnimate will use noop if the value is falsy anyways

@matsko matsko added cla: yes and removed cla: no labels Jun 6, 2014
@matsko
Copy link
Contributor Author

matsko commented Jun 6, 2014

Yes, but when ngAnimate is not included then the core $animate service should still return a function.

@btford btford added this to the 1.3.0-beta.12 milestone Jun 10, 2014

function track(type) {
return function(element, add, remove, done) {
done = done || remove || add;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok :)

matsko added a commit to matsko/angular.js that referenced this pull request Jul 1, 2014
@IgorMinar
Copy link
Contributor

lgtm

@matsko
Copy link
Contributor Author

matsko commented Jul 1, 2014

MERGED as ca75279

@matsko matsko closed this Jul 1, 2014
matsko added a commit that referenced this pull request Jul 1, 2014
ckknight pushed a commit to ckknight/angular.js that referenced this pull request Jul 16, 2014
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.

7 participants