Chromium Code Reviews
DescriptionAllow on-* event handlers on <sky-element>.
Now instead of calling addEventListener inside the created() callback you just
add on-{eventName} attributes to the <sky-element> around your element
definition. The attribute defines what method on your element to call when the
event with {eventName} is dispatched through your element.
Implementing this required refactoring how sky-element.sky stored information
from each registered element. Now instead of storing just a map of templates
we store a map of ElementRegistration objects which have metadata about the
element. Future patches will combine this system with the element registration
system in sky-binder.
R=ojan@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/6c501416f074c22d6bd424bea3a76ffc601dff6e
Patch Set 1 #Patch Set 2 : Add back attr validation. #
Total comments: 1
Patch Set 3 : s p a c i n g #
Messages
Total messages: 3 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||