mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
15 lines
269 B
JavaScript
15 lines
269 B
JavaScript
module.exports = {
|
|
onMount: function() {
|
|
this.divClicked = false;
|
|
this.buttonClicked = false;
|
|
},
|
|
|
|
handleDivClick: function(event) {
|
|
this.divClicked = true;
|
|
},
|
|
|
|
handleButtonClick: function(event) {
|
|
this.buttonClicked = true;
|
|
event.stopPropagation();
|
|
}
|
|
}; |