From 9005cf34a0efeedfb339bbb7fd6ef7de6cb37def Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Thu, 23 Aug 2012 12:23:07 -0700 Subject: [PATCH] more events decl changes --- packages/madewith/madewith.js | 4 ++-- packages/templating/templating_tests.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;