mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
more events decl changes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
})();
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user