12 lines
153 B
JavaScript
12 lines
153 B
JavaScript
|
function Dom() {
|
||
|
return {
|
||
|
clear: clear
|
||
|
}
|
||
|
|
||
|
function clear(elem) {
|
||
|
while(elem.firstChild) {
|
||
|
elem.removeChild(elem.firstChild);
|
||
|
}
|
||
|
}
|
||
|
}
|