is there a way to tie multiple events to a single click handler in Blaze? e.g.
Template.Foo.events({
'click touchstart .my-div': function(event, template) {
// do stuff
},
is this supported, and if so how do i do it? the above does not work.
is there a way to tie multiple events to a single click handler in Blaze? e.g.
Template.Foo.events({
'click touchstart .my-div': function(event, template) {
// do stuff
},
is this supported, and if so how do i do it? the above does not work.
Template.Foo.events({
'click #me, click #foo, submit, onblur #field' (e, i) {
// Stuff
}
});
awesome, thanks. +1 for use of foo.