Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5cfacec

Browse files
committed
refactor($animate): speed up animationsDisabled check
1 parent 1df3da3 commit 5cfacec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngAnimate/animate.js

+2
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ angular.module('ngAnimate', ['ng'])
754754
}
755755

756756
function animationsDisabled(element, parentElement) {
757+
if (rootAnimateState.disabled) return true;
758+
757759
if(element[0] == $rootElement[0]) {
758760
return rootAnimateState.disabled || rootAnimateState.running;
759761
}

0 commit comments

Comments
 (0)