| 9318 | } |
| 9319 | |
| 9320 | function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) { |
| 9321 | var node = nodeList[idx]; |
| 9322 | var parent = node.parentNode; |
| 9323 | var sibling; |
| 9324 | |
| 9325 | if (node.nodeType !== NODE_TYPE_TEXT) { |
| 9326 | return; |
| 9327 | } |
| 9328 | |
| 9329 | while (true) { |
| 9330 | sibling = parent ? node.nextSibling : nodeList[idx + 1]; |
| 9331 | if (!sibling || sibling.nodeType !== NODE_TYPE_TEXT) { |
| 9332 | break; |
| 9333 | } |
| 9334 | |
| 9335 | node.nodeValue = node.nodeValue + sibling.nodeValue; |
| 9336 | |
| 9337 | if (sibling.parentNode) { |
| 9338 | sibling.parentNode.removeChild(sibling); |
| 9339 | } |
| 9340 | if (notLiveList && sibling === nodeList[idx + 1]) { |
| 9341 | nodeList.splice(idx + 1, 1); |
| 9342 | } |
| 9343 | } |
| 9344 | } |
| 9345 | |
| 9346 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 9347 | function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |