meshviewer/lib/container.js

18 lines
279 B
JavaScript
Raw Normal View History

2015-03-25 23:33:11 +00: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
}
})