MCPcopy
hub / github.com/angular-ui/ui-router / removeComments

Function removeComments

test/angular/1.7/angular.js:11553–11569  ·  view source on GitHub ↗
(jqNodes)

Source from the content-addressed store, hash-verified

11551}
11552
11553function removeComments(jqNodes) {
11554 jqNodes = jqLite(jqNodes);
11555 var i = jqNodes.length;
11556
11557 if (i <= 1) {
11558 return jqNodes;
11559 }
11560
11561 while (i--) {
11562 var node = jqNodes[i];
11563 if (node.nodeType === NODE_TYPE_COMMENT ||
11564 (node.nodeType === NODE_TYPE_TEXT && node.nodeValue.trim() === '')) {
11565 splice.call(jqNodes, i, 1);
11566 }
11567 }
11568 return jqNodes;
11569}
11570
11571var $controllerMinErr = minErr('$controller');
11572

Callers 2

applyDirectivesToNodeFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected