GT2/GT2-iOS/node_modules/min-document/test/cleanup.js

14 lines
278 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
module.exports = Cleanup
function Cleanup (document) {
return cleanup
function cleanup () {
var childNodes = document.body.childNodes
for (var i = 0; i < childNodes.length; i++) {
document.body.removeChild(childNodes[i])
}
}
}