* Add an effect to the pending set. * Schedules a microtask to run them if one isn't already scheduled. * @param {Effect} effect
(effect)
| 328 | * @param {Effect} effect |
| 329 | */ |
| 330 | _scheduleEffect(effect) { |
| 331 | if (effect._isStopped) return; |
| 332 | this._pendingEffects.add(effect); |
| 333 | if (!this._isRunScheduled) { |
| 334 | this._isRunScheduled = true; |
| 335 | var self = this; |
| 336 | queueMicrotask(function () { self._runPendingEffects(); }); |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | /** |
| 341 | * Set up the single global MutationObserver and delegated input/change |
no test coverage detected