* 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)
| 10113 | * @returns {*} |
| 10114 | */ |
| 10115 | function groupScan(node, attrStart, attrEnd) { |
| 10116 | var nodes = []; |
| 10117 | var depth = 0; |
| 10118 | if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) { |
| 10119 | do { |
| 10120 | if (!node) { |
| 10121 | throw $compileMinErr('uterdir', |
| 10122 | 'Unterminated attribute, found \'{0}\' but no matching \'{1}\' found.', |
| 10123 | attrStart, attrEnd); |
| 10124 | } |
| 10125 | if (node.nodeType === NODE_TYPE_ELEMENT) { |
| 10126 | if (node.hasAttribute(attrStart)) depth++; |
| 10127 | if (node.hasAttribute(attrEnd)) depth--; |
| 10128 | } |
| 10129 | nodes.push(node); |
| 10130 | node = node.nextSibling; |
| 10131 | } while (depth > 0); |
| 10132 | } else { |
| 10133 | nodes.push(node); |
| 10134 | } |
| 10135 | |
| 10136 | return jqLite(nodes); |
| 10137 | } |
| 10138 | |
| 10139 | /** |
| 10140 | * Wrapper for linking function which converts normal linking function into a grouped |
no outgoing calls
no test coverage detected