Skip to content

Commit

Permalink
chore($animate): remove unnecessary reflective dereferencing
Browse files Browse the repository at this point in the history
  • Loading branch information
matsko authored and jamesdaily committed Jan 27, 2014
1 parent 9c8786a commit 7eeb0fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngAnimate/animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 7eeb0fd

Please sign in to comment.