mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #350 from yanivoliver/master
Use new event handler syntax in skeleton app
This commit is contained in:
@@ -3,17 +3,17 @@ if (Meteor.isClient) {
|
||||
return "Welcome to ~name~.";
|
||||
};
|
||||
|
||||
Template.hello.events = {
|
||||
Template.hello.events({
|
||||
'click input' : function () {
|
||||
// template data, if any, is available in 'this'
|
||||
if (typeof console !== 'undefined')
|
||||
console.log("You pressed the button");
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(function () {
|
||||
// code to run on server at startup
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user