diff --git a/src/lib/src/shared/flo.properties.ts b/src/lib/src/shared/flo.properties.ts index 2c9a95e..11ad1ff 100644 --- a/src/lib/src/shared/flo.properties.ts +++ b/src/lib/src/shared/flo.properties.ts @@ -102,7 +102,7 @@ export namespace Properties { protected loading : boolean = true; - protected _loadedSubject = new Subject(); + protected _loadedSubject : Subject; constructor(cell : dia.Cell) { this.cell = cell; @@ -110,10 +110,12 @@ export namespace Properties { load() { this.loading = true; + this._loadedSubject = new Subject(); this.createProperties().then(properties => { this.controlModels = properties.map(p => this.createControlModel(p)); this.loading = false; this._loadedSubject.next(true); + this._loadedSubject.complete(); }); }