forked from FriedChickenButt/youtube-webos
-
-
Notifications
You must be signed in to change notification settings - Fork 45
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 observeAttributes to waitForChildAdd
You must now specify whether waitForChildAdd() should 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. A new parameter, observeAttributes, has been added before abortSignal. When it is true, you will get the old behavior. When it is false, the predicate will not be called on attribute changes.
- Loading branch information
1 parent
e853522
commit 6f38433
Showing
2 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters