(node)
| 3046 | |
| 3047 | // TODO(matsko): change to reference nodes |
| 3048 | function getAnchorNodes(node) { |
| 3049 | var SELECTOR = '[' + NG_ANIMATE_REF_ATTR + ']'; |
| 3050 | var items = node.hasAttribute(NG_ANIMATE_REF_ATTR) |
| 3051 | ? [node] |
| 3052 | : node.querySelectorAll(SELECTOR); |
| 3053 | var anchors = []; |
| 3054 | forEach(items, function(node) { |
| 3055 | var attr = node.getAttribute(NG_ANIMATE_REF_ATTR); |
| 3056 | if (attr && attr.length) { |
| 3057 | anchors.push(node); |
| 3058 | } |
| 3059 | }); |
| 3060 | return anchors; |
| 3061 | } |
| 3062 | |
| 3063 | function groupAnimations(animations) { |
| 3064 | var preparedAnimations = []; |
no test coverage detected