Skip to content

Instantly share code, notes, and snippets.

@copleykj
Created December 10, 2013 19:35
Show Gist options
  • Select an option

  • Save copleykj/7896726 to your computer and use it in GitHub Desktop.

Select an option

Save copleykj/7896726 to your computer and use it in GitHub Desktop.
Trigger meteor template events programmatically.
_(Template.templateName._tmpl_data.events["event selector"]).each(function(eventName){
eventName.call(self, event);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment