DescriptionAdd declarataive event handlers.
Now inside the <template> of a SkyElement you can use
on-eventName="method" on any element to add event listeners.
For example you can write <sky-button on-click="handleClick">
and then define handleClick(event) on the element class that
contains the button.
In adding this and tests I also realized that property bindings
were not setup on the initial call to bind(), which is now
fixed in this patch (See change to Node.prototype.bind).
R=eseidel@google.com, rafaelw@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/0d853ab5c4ab9ea55dc9bd35164c0be292dae2a5
Patch Set 1 #Patch Set 2 : Add tests and fix binding #
Messages
Total messages: 7 (2 generated)
|