chore($animate): remove unnecessary reflective dereferencing

This commit is contained in:
Matias Niemelä 2013-11-21 20:26:05 -05:00
parent 6760d7a315
commit 3fbb25e25c

View file

@ -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);
}
});