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

Function removeComments

test/angular/1.4/angular.js:9293–9308  ·  view source on GitHub ↗
(jqNodes)

Source from the content-addressed store, hash-verified

9291}
9292
9293function removeComments(jqNodes) {
9294 jqNodes = jqLite(jqNodes);
9295 var i = jqNodes.length;
9296
9297 if (i <= 1) {
9298 return jqNodes;
9299 }
9300
9301 while (i--) {
9302 var node = jqNodes[i];
9303 if (node.nodeType === NODE_TYPE_COMMENT) {
9304 splice.call(jqNodes, i, 1);
9305 }
9306 }
9307 return jqNodes;
9308}
9309
9310var $controllerMinErr = minErr('$controller');
9311

Callers 2

applyDirectivesToNodeFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected