aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngAnimate/animate.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-10-28 21:44:06 -0700
committerMatias Niemelä2013-10-28 22:47:47 -0700
commitd434eabec3955f8d56c859c93befe711bfa1de27 (patch)
tree576f2310f3fce0a1a5c99da8f757c883ec12000f /src/ngAnimate/animate.js
parent7f0767acaba1ec3c8849244a604b0d1c8c376446 (diff)
downloadangular.js-d434eabec3955f8d56c859c93befe711bfa1de27.tar.bz2
fix($animate): use direct DOM comparison when checking for $rootElement
Closes #4679
Diffstat (limited to 'src/ngAnimate/animate.js')
-rw-r--r--src/ngAnimate/animate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js
index 6b72f4a8..64be7ba7 100644
--- a/src/ngAnimate/animate.js
+++ b/src/ngAnimate/animate.js
@@ -697,7 +697,7 @@ angular.module('ngAnimate', ['ng'])
}
function animationsDisabled(element, parent) {
- if(element == $rootElement) {
+ if(element[0] == $rootElement[0]) {
return rootAnimateState.disabled || rootAnimateState.running;
}