From d434eabec3955f8d56c859c93befe711bfa1de27 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Mon, 28 Oct 2013 21:44:06 -0700 Subject: fix($animate): use direct DOM comparison when checking for $rootElement Closes #4679 --- src/ngAnimate/animate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3