| 9357 | } |
| 9358 | |
| 9359 | function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) { |
| 9360 | var node = nodeList[idx]; |
| 9361 | var parent = node.parentNode; |
| 9362 | var sibling; |
| 9363 | |
| 9364 | if (node.nodeType !== NODE_TYPE_TEXT) { |
| 9365 | return; |
| 9366 | } |
| 9367 | |
| 9368 | while (true) { |
| 9369 | sibling = parent ? node.nextSibling : nodeList[idx + 1]; |
| 9370 | if (!sibling || sibling.nodeType !== NODE_TYPE_TEXT) { |
| 9371 | break; |
| 9372 | } |
| 9373 | |
| 9374 | node.nodeValue = node.nodeValue + sibling.nodeValue; |
| 9375 | |
| 9376 | if (sibling.parentNode) { |
| 9377 | sibling.parentNode.removeChild(sibling); |
| 9378 | } |
| 9379 | if (notLiveList && sibling === nodeList[idx + 1]) { |
| 9380 | nodeList.splice(idx + 1, 1); |
| 9381 | } |
| 9382 | } |
| 9383 | } |
| 9384 | |
| 9385 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 9386 | function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |