We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6ed66b5 + 3c7ed4b commit 670d0e1Copy full SHA for 670d0e1
1 file changed
data/observable/observable.ts
@@ -121,16 +121,17 @@ export class Observable implements definition.Observable {
121
return this[name];
122
}
123
124
- private disableNotifications = false;
+ //private disableNotifications = false;
125
+ private disableNotifications = {};
126
127
public _setCore(data: definition.PropertyChangeData) {
- this.disableNotifications = true;
128
+ this.disableNotifications[data.propertyName] = true;
129
this[data.propertyName] = data.value;
- this.disableNotifications = false;
130
+ delete this.disableNotifications[data.propertyName];
131
132
133
public notify<T extends definition.EventData>(data: T) {
- if (this.disableNotifications) {
134
+ if (this.disableNotifications[(<any>data).propertyName]) {
135
return;
136
137
0 commit comments