Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils.js: add options to waitForChildAdd()
By default, waitForChildAdd() will no longer check the predicate on attribute changes. None of its callers depended on this behavior, so the callback and predicate were running hundreds of times unnecessarily. If you want to use the old behavior, set checkAttrs to true in the new options argument. The abortSignal argument has also been moved into options.
- Loading branch information