From 27fc21c5b622c486b2548ef7c7000e25a6c1a113 Mon Sep 17 00:00:00 2001 From: Josef Brandl Date: Fri, 2 Feb 2018 22:50:20 +0100 Subject: [PATCH] Update docs: templatize() cannot be called multiple times --- lib/utils/templatize.html | 25 +++++++++++++++++-------- types/lib/utils/templatize.d.ts | 25 +++++++++++++++++-------- 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/lib/utils/templatize.html b/lib/utils/templatize.html index 85812500b9..9d72b4547e 100644 --- a/lib/utils/templatize.html +++ b/lib/utils/templatize.html @@ -462,6 +462,11 @@ * from `instance.parentModel` in cases where template instance nesting * causes an inner model to shadow an outer model. * + * All callbacks are called bound to the `owner`. Any context + * needed for the callbacks (such as references to `instances` stamped) + * should be stored on the `owner` such that they can be retrieved via + * `this`. + * * When `options.forwardHostProp` is declared as an option, any properties * referenced in the template will be automatically forwarded from the host of * the `