* Add an effect to the pending set. * Schedules a microtask to run them if one isn't already scheduled. * @param {Effect} effect
(effect)
| 3205 | * @param {Effect} effect |
| 3206 | */ |
| 3207 | _scheduleEffect(effect) { |
| 3208 | if (effect._isStopped) return; |
| 3209 | this._pendingEffects.add(effect); |
| 3210 | if (!this._isRunScheduled) { |
| 3211 | this._isRunScheduled = true; |
| 3212 | var self2 = this; |
| 3213 | queueMicrotask(function() { |
| 3214 | self2._runPendingEffects(); |
| 3215 | }); |
| 3216 | } |
| 3217 | } |
| 3218 | /** |
| 3219 | * Set up the single global MutationObserver and delegated input/change |
| 3220 | * listeners that power attribute, property, and query tracking. |
no test coverage detected