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

Function removeComments

test/angular/1.6/angular.js:10966–10982  ·  view source on GitHub ↗
(jqNodes)

Source from the content-addressed store, hash-verified

10964}
10965
10966function removeComments(jqNodes) {
10967 jqNodes = jqLite(jqNodes);
10968 var i = jqNodes.length;
10969
10970 if (i <= 1) {
10971 return jqNodes;
10972 }
10973
10974 while (i--) {
10975 var node = jqNodes[i];
10976 if (node.nodeType === NODE_TYPE_COMMENT ||
10977 (node.nodeType === NODE_TYPE_TEXT && node.nodeValue.trim() === '')) {
10978 splice.call(jqNodes, i, 1);
10979 }
10980 }
10981 return jqNodes;
10982}
10983
10984var $controllerMinErr = minErr('$controller');
10985

Callers 2

applyDirectivesToNodeFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected