GT2/GT2-Android/node_modules/art/dom/container.js

16 lines
277 B
JavaScript
Raw Normal View History

var Class = require('../core/class');
module.exports = Class({
grab: function(){
for (var i = 0; i < arguments.length; i++) arguments[i].inject(this);
return this;
},
empty: function(){
var node;
while (node = this.firstChild) node.eject();
return this;
}
});