freifunkmanager/webroot/js/domlib.js

15 lines
296 B
JavaScript
Raw Normal View History

2017-05-09 20:40:18 +02:00
var domlib = {};
(function(){
domlib.newAt = function(at,eltype) {
var el = document.createElement(eltype);
at.appendChild(el);
return el;
};
domlib.removeChildren = function(el) {
if(el)
while(el.firstChild) {
el.removeChild(el.firstChild);
}
};
})()