mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-20 08:20:25 +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) {
|
||||
var isCancelledFlag = true;
|
||||
forEach(animations, function(animation) {
|
||||
if(!animations['beforeComplete']) {
|
||||
if(!animations.beforeComplete) {
|
||||
(animation.beforeEnd || noop)(isCancelledFlag);
|
||||
}
|
||||
if(!animations['afterComplete']) {
|
||||
if(!animations.afterComplete) {
|
||||
(animation.afterEnd || noop)(isCancelledFlag);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue