* 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)
| 3121 | * @param {string} name - Property name |
| 3122 | */ |
| 3123 | trackProperty(obj, name) { |
| 3124 | if (obj == null || typeof obj !== "object" || obj._hsSkipTracking) return; |
| 3125 | this._currentEffect.dependencies.set( |
| 3126 | "property:" + this._getObjectState(obj).id, |
| 3127 | { type: "property", object: obj, name } |
| 3128 | ); |
| 3129 | } |
| 3130 | /** |
| 3131 | * Track a DOM attribute read as a dependency. |
| 3132 | * @param {Element} element |
no test coverage detected