* Updates the specified property with the provided value.
(name: string, value: any)
| 525 | * Updates the specified property with the provided value. |
| 526 | */ |
| 527 | public set(name: string, value: any): void { |
| 528 | const currentValue = this._map[name]; |
| 529 | if (currentValue === value) { |
| 530 | return; |
| 531 | } |
| 532 | |
| 533 | const newValue = WrappedValue.unwrap(value); |
| 534 | this._map[name] = newValue; |
| 535 | this.notifyPropertyChange(name, newValue, currentValue); |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | function defineNewProperty(target: ObservableFromObject, propertyName: string): void { |
nothing calls this directly
no test coverage detected