Get et2 working in typescript

This commit is contained in:
nathangray
2020-01-22 01:58:43 -07:00
committed by Hadi Nategh
parent 805ac4591b
commit 680a82cb4e
6 changed files with 19 additions and 8 deletions

View File

@@ -30,7 +30,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
*/
var et2_core_widget_1 = require("./et2_core_widget");
var et2_core_baseWidget_1 = require("./et2_core_baseWidget");
var et2_core_xml_1 = require("./et2_core_xml");
/**
* Class which implements box and vbox tag
*
@@ -81,7 +80,7 @@ var et2_box = /** @class */ (function (_super) {
continue;
}
// Create the new element, if no expansion needed
var id = et2_core_xml_1.et2_readAttrWithDefault(node, "id", "");
var id = et2_readAttrWithDefault(node, "id", "");
if (id.indexOf('$') < 0 || widgetType != 'box') {
this.createElementFromNode(node);
childIndex++;