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

Function removeComments

test/angular/1.5/angular.js:10418–10434  ·  view source on GitHub ↗
(jqNodes)

Source from the content-addressed store, hash-verified

10416}
10417
10418function removeComments(jqNodes) {
10419 jqNodes = jqLite(jqNodes);
10420 var i = jqNodes.length;
10421
10422 if (i <= 1) {
10423 return jqNodes;
10424 }
10425
10426 while (i--) {
10427 var node = jqNodes[i];
10428 if (node.nodeType === NODE_TYPE_COMMENT ||
10429 (node.nodeType === NODE_TYPE_TEXT && node.nodeValue.trim() === '')) {
10430 splice.call(jqNodes, i, 1);
10431 }
10432 }
10433 return jqNodes;
10434}
10435
10436var $controllerMinErr = minErr('$controller');
10437

Callers 2

applyDirectivesToNodeFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected