* Track a property read as a dependency. * Subscription is coarse-grained (one handler per object, not per property), * so the dep key uses "*" rather than the property name. * @param {Object} obj - DOM element or plain JS object * @param {string} name - Property name
(obj, name)
| 3119 | * @param {string} name - Property name |
| 3120 | */ |
| 3121 | trackProperty(obj, name) { |
| 3122 | if (obj == null || typeof obj !== "object" || obj._hsSkipTracking) return; |
| 3123 | this._currentEffect.dependencies.set( |
| 3124 | "property:" + this._getObjectState(obj).id, |
| 3125 | { type: "property", object: obj, name } |
| 3126 | ); |
| 3127 | } |
| 3128 | /** |
| 3129 | * Track a DOM attribute read as a dependency. |
| 3130 | * @param {Element} element |
no test coverage detected