aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatias Niemelä2013-11-21 20:26:05 -0500
committerMatias Niemelä2013-11-21 20:48:21 -0500
commit3fbb25e25cc9bd1ddad8efab9f43749735e53454 (patch)
tree6024dcc2b2087b746e175bda35178a76f8ed4442 /src
parent6760d7a315d7ea5cbd4f8ab74b200f754a2041f4 (diff)
downloadangular.js-3fbb25e25cc9bd1ddad8efab9f43749735e53454.tar.bz2
chore($animate): remove unnecessary reflective dereferencing
Diffstat (limited to 'src')
-rw-r--r--src/ngAnimate/animate.js4
1 files changed, 2 insertions, 2 deletions
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);
}
});