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

Commit a4d4d3c

Browse files
committed
refactor(ngAnimate): simplify closeChildAnimations() and remove redundant calls
1 parent 8c71c02 commit a4d4d3c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ngAnimate/animateQueue.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
393393
}
394394

395395
if (isStructural) {
396-
closeChildAnimations(element);
396+
closeChildAnimations(node);
397397
}
398398

399399
var newAnimation = {
@@ -585,8 +585,7 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
585585
}
586586
}
587587

588-
function closeChildAnimations(element) {
589-
var node = getDomNode(element);
588+
function closeChildAnimations(node) {
590589
var children = node.querySelectorAll('[' + NG_ANIMATE_ATTR_NAME + ']');
591590
forEach(children, function(child) {
592591
var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME), 10);

0 commit comments

Comments
 (0)