This commit is contained in:
rnentjes
2017-04-02 17:01:29 +02:00
parent c584dc682e
commit 5f7f2d681a
24 changed files with 924 additions and 13 deletions

View File

@@ -43,9 +43,16 @@ var komp = function (_, Kotlin, $module$kotlinx_html_js) {
Komp.prototype.define_eho435$ = function (element, component) {
this.elements_0.put_xwzc9p$(element, component);
};
Komp.prototype.create_eho435$ = function (parent, component) {
Komp.prototype.create_og2ns8$ = function (parent, component, insertAsFirst) {
if (insertAsFirst === void 0)
insertAsFirst = false;
var element = component.create();
parent.appendChild(element);
if (insertAsFirst && parent.childElementCount > 0) {
parent.insertBefore(element, parent.firstChild);
}
else {
parent.appendChild(element);
}
this.elements_0.put_xwzc9p$(element, component);
};
Komp.prototype.remove_lt8gi4$ = function (element) {