diff --git a/data/observable/observable.ts b/data/observable/observable.ts index f97302564..aac6f0e8d 100644 --- a/data/observable/observable.ts +++ b/data/observable/observable.ts @@ -121,16 +121,17 @@ export class Observable implements definition.Observable { return this[name]; } - private disableNotifications = false; + //private disableNotifications = false; + private disableNotifications = {}; public _setCore(data: definition.PropertyChangeData) { - this.disableNotifications = true; + this.disableNotifications[data.propertyName] = true; this[data.propertyName] = data.value; - this.disableNotifications = false; + delete this.disableNotifications[data.propertyName]; } public notify(data: T) { - if (this.disableNotifications) { + if (this.disableNotifications[(data).propertyName]) { return; }