MCPcopy Index your code
hub / github.com/microsoft/SandDance / domClear

Function domClear

docs/app/js/sanddance-app.js:123219–123223  ·  view source on GitHub ↗
(el, index)

Source from the content-addressed store, hash-verified

123217 return a;
123218} // remove all child elements at or above the given index
123219function domClear(el, index) {
123220 var nodes = el.childNodes, curr = nodes.length;
123221 while(curr > index)el.removeChild(nodes[--curr]);
123222 return el;
123223} // generate css class name for mark
123224function cssClass(mark) {
123225 return "mark-" + mark.marktype + (mark.role ? " role-" + mark.role : "") + (mark.name ? " " + mark.name : "");
123226}

Callers 8

initializeFunction · 0.70
_renderFunction · 0.70
markFunction · 0.70
defsFunction · 0.70
updateGradientFunction · 0.70
updateClippingFunction · 0.70
recurseFunction · 0.70
textFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected