more events decl changes

This commit is contained in:
David Greenspan
2012-08-23 12:23:07 -07:00
parent 2255c61383
commit 9005cf34a0
2 changed files with 4 additions and 4 deletions

View File

@@ -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();
}
}
};
});
})();

View File

@@ -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;