| 9247 | } |
| 9248 | |
| 9249 | function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) { |
| 9250 | var node = nodeList[idx]; |
| 9251 | var parent = node.parentNode; |
| 9252 | var sibling; |
| 9253 | |
| 9254 | if (node.nodeType !== NODE_TYPE_TEXT) { |
| 9255 | return; |
| 9256 | } |
| 9257 | |
| 9258 | while (true) { |
| 9259 | sibling = parent ? node.nextSibling : nodeList[idx + 1]; |
| 9260 | if (!sibling || sibling.nodeType !== NODE_TYPE_TEXT) { |
| 9261 | break; |
| 9262 | } |
| 9263 | |
| 9264 | node.nodeValue = node.nodeValue + sibling.nodeValue; |
| 9265 | |
| 9266 | if (sibling.parentNode) { |
| 9267 | sibling.parentNode.removeChild(sibling); |
| 9268 | } |
| 9269 | if (notLiveList && sibling === nodeList[idx + 1]) { |
| 9270 | nodeList.splice(idx + 1, 1); |
| 9271 | } |
| 9272 | } |
| 9273 | } |
| 9274 | |
| 9275 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 9276 | function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |