mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
10 lines
349 B
JavaScript
10 lines
349 B
JavaScript
module.exports = {
|
|
handleClick: function(event) {
|
|
// Every Widget instance is also an EventEmitter instance.
|
|
// We will emit a custom "click" event when a DOM click event
|
|
// is triggered
|
|
this.emit('click', {
|
|
event: event // Pass along the DOM event in case it is helpful to others
|
|
});
|
|
}
|
|
}; |