server/www/dom.js

12 lines
157 B
JavaScript
Raw Normal View History

function Dom() {
return {
clear: clear
}
function clear(elem) {
while(elem.firstChild) {
elem.removeChild(elem.firstChild);
}
}
}