Merge pull request #350 from yanivoliver/master

Use new event handler syntax in skeleton app
This commit is contained in:
Avital Oliver
2012-09-21 17:38:21 -07:00

View File

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