From 3fbb25e25cc9bd1ddad8efab9f43749735e53454 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Thu, 21 Nov 2013 20:26:05 -0500 Subject: chore($animate): remove unnecessary reflective dereferencing --- src/ngAnimate/animate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ngAnimate') diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js index 4d3a5878..81d20043 100644 --- a/src/ngAnimate/animate.js +++ b/src/ngAnimate/animate.js @@ -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); } }); -- cgit v1.2.3