* Track a DOM attribute read as a dependency. * @param {Element} element * @param {string} name - Attribute name
(element, name)
| 3081 | * @param {string} name - Attribute name |
| 3082 | */ |
| 3083 | trackAttribute(element, name) { |
| 3084 | if (!(element instanceof Element)) return; |
| 3085 | this._currentEffect.dependencies.set( |
| 3086 | "attribute:" + name + ":" + this._getObjectState(element).id, |
| 3087 | { type: "attribute", element, name } |
| 3088 | ); |
| 3089 | } |
| 3090 | /** |
| 3091 | * Notify that a global variable was written. |
| 3092 | * @param {string} name - Variable name |
no test coverage detected