UNPKG
choo-shortcache
Version:
latest (0.0.0)
0.0.0
choo nanocomponent cache shortcut
choo-shortcache
/
example
/
node_modules
/
min-document
/
test
/
cleanup.js
14 lines
(10 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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]) } } }