mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
get method on Observable created with fromObject wan’t returning the value that was put from set if that property was not specified in the object passed to fromObject. (#4213)
get method on Observable created with fromObject wasn’t returning the …
This commit is contained in:
@@ -185,6 +185,10 @@ export class Observable implements ObservableDefinition {
|
||||
class ObservableFromObject extends Observable {
|
||||
public _map = {};
|
||||
|
||||
public get(name: string): any {
|
||||
return this._map[name];
|
||||
}
|
||||
|
||||
public set(name: string, value: any) {
|
||||
const currentValue = this._map[name];
|
||||
if (currentValue === value) {
|
||||
|
||||
Reference in New Issue
Block a user