[DOC] doc: small misc fixes

This commit is contained in:
Géry Debongnie
2019-05-31 12:39:40 +02:00
parent 0eccfd08fe
commit 34b5049dee
2 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -600,8 +600,8 @@ The `t-transition` directive can be combined with `t-widget`.
Notes:
- more information on animations are available [here](animations.md).
- the value for `t-transition` must be a single class name. Owl does not support
more than one transition on a single node.
- Owl does not support more than one transition on a single node, so the
`t-transition` expression must be a single value (i.e. no space allowed)
### `t-mounted` directive
+3 -4
View File
@@ -213,7 +213,7 @@ QWeb.addDirective({
* let _2_index = c1.length;
* c1.push(null);
*
* // def3 is the deferred that will contain later either the new widget
* // def3 is the promise that will contain later either the new widget
* // creation, or the props update...
* let def3;
*
@@ -249,14 +249,13 @@ QWeb.addDirective({
* // in this situation, we need to create a new widget. First step is
* // to get a reference to the class, then create an instance with
* // current context as parent, and the props.
* let W4 = context.widgets["child"];
* let W4 = context.widgets && context.widgets[widgetKey4] || QWeb.widgets[widgetKey4];
* if (!W4) {
* throw new Error("Cannot find the definition of widget 'child'");
* }
* w4 = new W4(owner, props4);
*
* let utils = this.utils;
*
* // Whenever we rerender the parent widget, we need to be sure that we
* // are able to find the widget instance. To do that, we register it to
* // the parent cmap (children map). Note that the 'template' key is