We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e75ed6 commit fe1e65cCopy full SHA for fe1e65c
examples/landmark-demo/client/landmark-demo.js
@@ -70,10 +70,9 @@ Template.stateDemo.timers = function () {
70
};
71
72
Template.timer.events = {
73
- 'click .reset': function () {
74
- // XXX need to get the template state object
75
- // XXX also probably need to have the landmark available..
76
- Timers.remove(this._id);
+ 'click .reset': function (event, template) {
+ template.data.elapsed = 0;
+ template.data.update();
77
},
78
'click .delete': function () {
79
Timers.remove(this._id);
0 commit comments