hopglass/lib/container.js

18 lines
279 B
JavaScript
Raw Normal View History

2015-03-26 00:33:11 +01:00
define([], function () {
return function () {
var self = this
var container = document.createElement("div")
self.add = function (d) {
d.render(container)
}
self.render = function (el) {
el.appendChild(container)
}
return self
}
})