MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / getAnchorNodes

Function getAnchorNodes

lib/test/angular/1.5.0/angular-animate.js:3048–3061  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

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 = [];

Callers 1

groupAnimationsFunction · 0.70

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected