forked from verdnatura/hedera-web
24 lines
355 B
JavaScript
Executable File
24 lines
355 B
JavaScript
Executable File
Vn.Node =
|
|
{
|
|
removeChilds: function (node)
|
|
{
|
|
var childs = node.childNodes;
|
|
|
|
while (childs.length > 0)
|
|
node.removeChild (childs[0]);
|
|
}
|
|
|
|
,remove: function (node)
|
|
{
|
|
node.parentNode.removeChild (node);
|
|
}
|
|
|
|
,setText: function (node, text)
|
|
{
|
|
Vn.Node.removeChilds (node);
|
|
|
|
if (text)
|
|
node.appendChild (document.createTextNode (text));
|
|
}
|
|
};
|