Skip to content

Commit fe1e65c

Browse files
committed
implement landmark-demo reset button
(doesn't work yet, no API behind it)
1 parent 3e75ed6 commit fe1e65c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/landmark-demo/client/landmark-demo.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ Template.stateDemo.timers = function () {
7070
};
7171

7272
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);
73+
'click .reset': function (event, template) {
74+
template.data.elapsed = 0;
75+
template.data.update();
7776
},
7877
'click .delete': function () {
7978
Timers.remove(this._id);

0 commit comments

Comments
 (0)