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

Function mergeConsecutiveTextNodes

lib/test/angular/1.7.0/angular.js:9359–9383  ·  view source on GitHub ↗
(nodeList, idx, notLiveList)

Source from the content-addressed store, hash-verified

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

Callers 1

compileNodesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected