* 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)
| 3187 | * @param {Object} obj - DOM element or plain JS object |
| 3188 | */ |
| 3189 | notifyProperty(obj) { |
| 3190 | if (obj == null || typeof obj !== "object" || obj._hsSkipTracking) return; |
| 3191 | var state = this._objectState.get(obj); |
| 3192 | if (state) { |
| 3193 | var subs = this._propertySubscriptions.get(state.id); |
| 3194 | if (subs) { |
| 3195 | for (var effect of subs) { |
| 3196 | this._scheduleEffect(effect); |
| 3197 | } |
| 3198 | } |
| 3199 | } |
| 3200 | } |
| 3201 | /** |
| 3202 | * Add an effect to the pending set. |
| 3203 | * Schedules a microtask to run them if one isn't already scheduled. |
no test coverage detected