mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-26 06:43:43 +00:00
chore($animate): remove unnecessary reflective dereferencing
This commit is contained in:
parent
6760d7a315
commit
3fbb25e25c
1 changed files with 2 additions and 2 deletions
|
|
@ -771,10 +771,10 @@ angular.module('ngAnimate', ['ng'])
|
||||||
function cancelAnimations(animations) {
|
function cancelAnimations(animations) {
|
||||||
var isCancelledFlag = true;
|
var isCancelledFlag = true;
|
||||||
forEach(animations, function(animation) {
|
forEach(animations, function(animation) {
|
||||||
if(!animations['beforeComplete']) {
|
if(!animations.beforeComplete) {
|
||||||
(animation.beforeEnd || noop)(isCancelledFlag);
|
(animation.beforeEnd || noop)(isCancelledFlag);
|
||||||
}
|
}
|
||||||
if(!animations['afterComplete']) {
|
if(!animations.afterComplete) {
|
||||||
(animation.afterEnd || noop)(isCancelledFlag);
|
(animation.afterEnd || noop)(isCancelledFlag);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue