forked from webosbrew/youtube-webos
-
Notifications
You must be signed in to change notification settings - Fork 1
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
9b70578
commit a1e4274
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