* 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)
| 9501 | * @returns {*} |
| 9502 | */ |
| 9503 | function groupScan(node, attrStart, attrEnd) { |
| 9504 | var nodes = []; |
| 9505 | var depth = 0; |
| 9506 | if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) { |
| 9507 | do { |
| 9508 | if (!node) { |
| 9509 | throw $compileMinErr('uterdir', |
| 9510 | 'Unterminated attribute, found \'{0}\' but no matching \'{1}\' found.', |
| 9511 | attrStart, attrEnd); |
| 9512 | } |
| 9513 | if (node.nodeType === NODE_TYPE_ELEMENT) { |
| 9514 | if (node.hasAttribute(attrStart)) depth++; |
| 9515 | if (node.hasAttribute(attrEnd)) depth--; |
| 9516 | } |
| 9517 | nodes.push(node); |
| 9518 | node = node.nextSibling; |
| 9519 | } while (depth > 0); |
| 9520 | } else { |
| 9521 | nodes.push(node); |
| 9522 | } |
| 9523 | |
| 9524 | return jqLite(nodes); |
| 9525 | } |
| 9526 | |
| 9527 | /** |
| 9528 | * Wrapper for linking function which converts normal linking function into a grouped |
no outgoing calls
no test coverage detected