[SOLVED] What is the "this" in a template event handler?


#1

For example,

Template.blah.events({
  'click #foo': function() {
    console.log("what is", this) // ?
  }
})

What’s the this referring to?


#2

Ah, it says right here: http://docs.meteor.com/#/full/eventmaps