From 9c4e227ae42d33865caec66a1ae112e51710f967 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Fri, 16 Jan 2015 16:40:24 -0800 Subject: [PATCH] More edits to docs, according to Sashko's comments --- docs/client/full-api/api/blaze.md | 2 +- docs/client/full-api/api/templates.md | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/client/full-api/api/blaze.md b/docs/client/full-api/api/blaze.md index 169eb69066..076e5d395d 100644 --- a/docs/client/full-api/api/blaze.md +++ b/docs/client/full-api/api/blaze.md @@ -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 diff --git a/docs/client/full-api/api/templates.md b/docs/client/full-api/api/templates.md index 2e69a825ed..12569fccd8 100644 --- a/docs/client/full-api/api/templates.md +++ b/docs/client/full-api/api/templates.md @@ -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"}}