MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / groupScan

Function groupScan

lib/test/angular/1.7.0/angular.js:9542–9564  ·  view source on GitHub ↗

* Given a node with a directive-start it collects all of the siblings until it finds * directive-end. * @param node * @param attrStart * @param attrEnd * @returns {*}

(node, attrStart, attrEnd)

Source from the content-addressed store, hash-verified

9540 * @returns {*}
9541 */
9542 function groupScan(node, attrStart, attrEnd) {
9543 var nodes = [];
9544 var depth = 0;
9545 if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) {
9546 do {
9547 if (!node) {
9548 throw $compileMinErr('uterdir',
9549 'Unterminated attribute, found \'{0}\' but no matching \'{1}\' found.',
9550 attrStart, attrEnd);
9551 }
9552 if (node.nodeType === NODE_TYPE_ELEMENT) {
9553 if (node.hasAttribute(attrStart)) depth++;
9554 if (node.hasAttribute(attrEnd)) depth--;
9555 }
9556 nodes.push(node);
9557 node = node.nextSibling;
9558 } while (depth > 0);
9559 } else {
9560 nodes.push(node);
9561 }
9562
9563 return jqLite(nodes);
9564 }
9565
9566 /**
9567 * Wrapper for linking function which converts normal linking function into a grouped

Callers 2

applyDirectivesToNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected