| 9907 | } |
| 9908 | |
| 9909 | function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) { |
| 9910 | var node = nodeList[idx]; |
| 9911 | var parent = node.parentNode; |
| 9912 | var sibling; |
| 9913 | |
| 9914 | if (node.nodeType !== NODE_TYPE_TEXT) { |
| 9915 | return; |
| 9916 | } |
| 9917 | |
| 9918 | while (true) { |
| 9919 | sibling = parent ? node.nextSibling : nodeList[idx + 1]; |
| 9920 | if (!sibling || sibling.nodeType !== NODE_TYPE_TEXT) { |
| 9921 | break; |
| 9922 | } |
| 9923 | |
| 9924 | node.nodeValue = node.nodeValue + sibling.nodeValue; |
| 9925 | |
| 9926 | if (sibling.parentNode) { |
| 9927 | sibling.parentNode.removeChild(sibling); |
| 9928 | } |
| 9929 | if (notLiveList && sibling === nodeList[idx + 1]) { |
| 9930 | nodeList.splice(idx + 1, 1); |
| 9931 | } |
| 9932 | } |
| 9933 | } |
| 9934 | |
| 9935 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 9936 | function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |