ultimate_tictactoe/tools.js
Jonas Weinz fea8e43ee2 friends
2019-03-24 16:43:29 +01:00

13 lines
243 B
JavaScript

function clear(node) {
while (node.hasChildNodes()) {
clear(node.firstChild);
}
node.parentNode.removeChild(node);
}
function clearInner(node) {
while (node.hasChildNodes()) {
clear(node.firstChild);
}
}