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