* Track an element-scoped variable read as a dependency. * @param {string} name - Variable name * @param {Element} element - Owning element
(name, element)
| 230 | * @param {Element} element - Owning element |
| 231 | */ |
| 232 | trackElementSymbol(name, element) { |
| 233 | if (!element) return; |
| 234 | var elementId = this._getObjectState(element).id; |
| 235 | this._currentEffect.dependencies.set("symbol:element:" + name + ":" + elementId, |
| 236 | { type: "symbol", name: name, scope: "element", element: element }); |
| 237 | } |
| 238 | |
| 239 | /** |
| 240 | * Track a property read as a dependency. |
no test coverage detected