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

Function mergeConsecutiveTextNodes

lib/test/angular/1.6.7/angular.js:9249–9273  ·  view source on GitHub ↗
(nodeList, idx, notLiveList)

Source from the content-addressed store, hash-verified

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

Callers 1

compileNodesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected