Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add element and target attribute change callbacks
Closes #445 --- Implement [attributeChange][] callbacks for both a controller's element and its targets. The `attributeChanged` and `[name]TargetAttributeChanged` callback signatures are styled after the Custom Element's `attributeChangedCallback`. The target variations accept the target element as the first argument, but are otherwise the same. It feels more appropriate to strive for parity in the interface than it is to yield the underlying [MutationRecord][] to call sites. [attributeChange]: https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks [MutationRecord]: https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord
- Loading branch information
1 parent
53b2c69
commit 12df44b
Showing
8 changed files
with
196 additions
and
24 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
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
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
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
Oops, something went wrong.