0
1
Fork 0
hedera-web-mindshore/package/usr/share/hedera-web/js/vn/node.js

30 lines
415 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));
}
};
function $ (id)
{
return document.getElementById (id);
}