UNPKG
@kickscondor/umbrellajs
Version:
latest (3.1.2)
3.1.2
3.1.1
Lightweight and intuitive javascript library
umbrellajs.com
kickscondor/umbrella
@kickscondor/umbrellajs
/
src
/
plugins
/
empty
/
empty.js
9 lines
(8 loc)
•
215 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
// Remove all children of the matched nodes from the DOM.
u.
prototype
.
empty
=
function
(
) {
return
this
.
each
(
function
(
node
) {
while
(node.
firstChild
) { node.
removeChild
(node.
firstChild
); } }); };