diff --git a/ui/core/dependency-observable.ts b/ui/core/dependency-observable.ts index 4a635aea1..9b641f35c 100644 --- a/ui/core/dependency-observable.ts +++ b/ui/core/dependency-observable.ts @@ -127,6 +127,7 @@ export class Property implements definition.Property { if (propertyFromKey[this._key]) { throw new Error("Property " + name + " already registered for type " + ownerType + "."); } + propertyFromKey[this._key] = this; if (!metadata || !(metadata instanceof PropertyMetadata)) { @@ -135,15 +136,10 @@ export class Property implements definition.Property { this._name = name; this._ownerType = ownerType; - this._metadata = metadata; - if (!metadata.options) { - metadata.options = PropertyMetadataSettings.None; - } // generate a unique numeric id for each property (faster lookup than a string key) this._id = propertyIdCounter++; - this._valueConverter = valueConverter; }