diff --git a/packages/madewith/madewith.js b/packages/madewith/madewith.js index 127915bf8f..92fc13be5f 100644 --- a/packages/madewith/madewith.js +++ b/packages/madewith/madewith.js @@ -26,7 +26,7 @@ return shortname; }; - Template.madewith.events = { + Template.madewith.events({ 'click .madewith_upvote': function(event) { var app = apps.findOne(); if (app) { @@ -37,5 +37,5 @@ event.preventDefault(); } } - }; + }); })(); \ No newline at end of file diff --git a/packages/templating/templating_tests.js b/packages/templating/templating_tests.js index d367a08d81..4815d809c9 100644 --- a/packages/templating/templating_tests.js +++ b/packages/templating/templating_tests.js @@ -572,7 +572,7 @@ Tinytest.add("templating - isolate helper", function (test) { }); Tinytest.add("templating - template arg", function (test) { - Template.test_template_arg_a.events = { + Template.test_template_arg_a.events({ click: function (event, template) { template.firstNode.innerHTML = 'Hello'; template.lastNode.innerHTML = 'World'; @@ -581,7 +581,7 @@ Tinytest.add("templating - template arg", function (test) { template.lastNode.innerHTML += ' (the secret is '+ template.secret+')'; } - }; + }); Template.test_template_arg_a.created = function() { var self = this;