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

Function groupScan

lib/test/angular/1.4.3/angular.js:7688–7710  ·  view source on GitHub ↗

* Given a node with an 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

7686 * @returns {*}
7687 */
7688 function groupScan(node, attrStart, attrEnd) {
7689 var nodes = [];
7690 var depth = 0;
7691 if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) {
7692 do {
7693 if (!node) {
7694 throw $compileMinErr('uterdir',
7695 "Unterminated attribute, found '{0}' but no matching '{1}' found.",
7696 attrStart, attrEnd);
7697 }
7698 if (node.nodeType == NODE_TYPE_ELEMENT) {
7699 if (node.hasAttribute(attrStart)) depth++;
7700 if (node.hasAttribute(attrEnd)) depth--;
7701 }
7702 nodes.push(node);
7703 node = node.nextSibling;
7704 } while (depth > 0);
7705 } else {
7706 nodes.push(node);
7707 }
7708
7709 return jqLite(nodes);
7710 }
7711
7712 /**
7713 * 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