MCPcopy Index your code
hub / github.com/angular-ui/ui-router / mergeConsecutiveTextNodes

Function mergeConsecutiveTextNodes

test/angular/1.6/angular.js:9320–9344  ·  view source on GitHub ↗
(nodeList, idx, notLiveList)

Source from the content-addressed store, hash-verified

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) {

Callers 1

compileNodesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected