* Updates the specified property with the provided value.
(name: string, value: any)
| 124 | * Updates the specified property with the provided value. |
| 125 | */ |
| 126 | public set(name: string, value: any): void { |
| 127 | // TODO: Parameter validation |
| 128 | const oldValue = this[name]; |
| 129 | if (this[name] === value) { |
| 130 | return; |
| 131 | } |
| 132 | |
| 133 | const newValue = WrappedValue.unwrap(value); |
| 134 | this[name] = newValue; |
| 135 | this.notifyPropertyChange(name, newValue, oldValue); |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. |