More edits to docs, according to Sashko's comments

This commit is contained in:
Slava Kim
2015-01-16 16:40:24 -08:00
parent 9e7c14ac81
commit 9c4e227ae4
2 changed files with 4 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ and manipulate "Views," the building blocks of reactive templates.
{{> autoApiBox "Blaze.render"}}
When you render a template, the template's callbacks added with
When you render a template, the callbacks added with
[`onCreated`](#template_onCreated) are invoked immediately, before evaluating
the content of the template. The callbacks added with
[`onRendered`](#template_onRendered) are invoked after the View is rendered and

View File

@@ -67,13 +67,9 @@ instance](#template_inst) object. Properties you set on this object will be
visible from the callbacks added with `onRendered` and `onDestroyed` methods and
from event handlers.
These callbacks fire once and are the first group of callbacks to fire. Every
`created` callbacks group has a corresponding `destroyed` group; that is, if you
get a `created` event with a certain template instance object in `this`, you
will eventually get a `destroyed` event for the same object.
Handling `created` event is a useful way to set up values on template instance
that are read from template helpers using `Template.instance()`.
These callbacks fire once and are the first group of callbacks to fire.
Handling the `created` event is a useful way to set up values on template
instance that are read from template helpers using `Template.instance()`.
{{> autoApiBox "Template#onDestroyed"}}