* Notify that a property was written programmatically. * Schedules all effects watching properties on this object. * @param {Object} obj - DOM element or plain JS object
(obj)
| 310 | * @param {Object} obj - DOM element or plain JS object |
| 311 | */ |
| 312 | notifyProperty(obj) { |
| 313 | if (obj == null || typeof obj !== "object" || obj._hsSkipTracking) return; |
| 314 | var state = this._objectState.get(obj); |
| 315 | if (state) { |
| 316 | var subs = this._propertySubscriptions.get(state.id); |
| 317 | if (subs) { |
| 318 | for (var effect of subs) { |
| 319 | this._scheduleEffect(effect); |
| 320 | } |
| 321 | } |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | /** |
| 326 | * Add an effect to the pending set. |
no test coverage detected