Separate PropertiesModel load from constructor

This commit is contained in:
BoykoAlex
2017-08-31 10:17:46 -04:00
parent 80f1511462
commit a4e8891737
2 changed files with 6 additions and 14 deletions

View File

@@ -106,10 +106,11 @@ export namespace Properties {
constructor(cell : dia.Cell) {
this.cell = cell;
this.init();
}
private init() {
load() {
this.loading = true;
this._loadedSubject.next(false);
this.createProperties().then(properties => {
this.controlModels = properties.map(p => this.createControlModel(p));
this.loading = false;