* Schedule effects with query deps whose root includes any of the mutated elements. * @param {Set |Element} mutated - Element(s) where DOM changes occurred
(mutated)
| 3297 | * @param {Set<Element>|Element} mutated - Element(s) where DOM changes occurred |
| 3298 | */ |
| 3299 | _scheduleQueryEffects(mutated) { |
| 3300 | if (this._querySubscriptions.size === 0) return; |
| 3301 | for (var [root, effects] of this._querySubscriptions) { |
| 3302 | if (this._containsTarget(root, mutated)) { |
| 3303 | for (var effect of effects) { |
| 3304 | this._scheduleEffect(effect); |
| 3305 | } |
| 3306 | } |
| 3307 | } |
| 3308 | } |
| 3309 | /** Check if any of the mutated elements are inside root. */ |
| 3310 | _containsTarget(root, mutated) { |
| 3311 | if (mutated instanceof Set) { |
no test coverage detected