meteor/meteor — pull request #3171 by Slava (2014-11-24 13:53:04+00:00)
Title: Add onEvent methods to Template

Add `Template#onCreated`, `Template#onRendered` and `Template#onDestroyed` methods. These are better than assigning `Template.rendered`, etc properties as you can add more than 1 of them w/o overriding previously added event handlers.

Ran test-packages for Blaze.

@avital @dgreensp