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

Function mergeConsecutiveTextNodes

lib/test/angular/1.8.0/angular.js:9909–9933  ·  view source on GitHub ↗
(nodeList, idx, notLiveList)

Source from the content-addressed store, hash-verified

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

Callers 1

compileNodesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected