Skip to content

Commit e5e3dc1

Browse files
matskojamesdaily
authored andcommitted
chore($animate): remove unnecessary reflective dereferencing
1 parent deb2559 commit e5e3dc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngAnimate/animate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -771,10 +771,10 @@ angular.module('ngAnimate', ['ng'])
771771
function cancelAnimations(animations) {
772772
var isCancelledFlag = true;
773773
forEach(animations, function(animation) {
774-
if(!animations['beforeComplete']) {
774+
if(!animations.beforeComplete) {
775775
(animation.beforeEnd || noop)(isCancelledFlag);
776776
}
777-
if(!animations['afterComplete']) {
777+
if(!animations.afterComplete) {
778778
(animation.afterEnd || noop)(isCancelledFlag);
779779
}
780780
});

0 commit comments

Comments
 (0)