meshviewer/lib/container.js
Xaver Maierhofer c0726461fb [TASK] Add semicolon
Most code is writen with semicolon and IDE shows errors in nearly every line
2016-05-22 16:01:15 +02:00

21 lines
323 B
JavaScript

define([], function () {
return function (tag) {
if (!tag)
tag = "div";
var self = this;
var container = document.createElement(tag);
self.add = function (d) {
d.render(container);
};
self.render = function (el) {
el.appendChild(container);
};
return self;
};
});