From 23ebe2f4838a90c226bf881df834a59415f67ef1 Mon Sep 17 00:00:00 2001 From: Baby Goat Date: Mon, 12 Mar 2018 16:33:06 -0600 Subject: [PATCH] doc: add missing parenthesis (#2104) * closing parenthese missing [### How it works](#howitworks) * update changelog --- docs/change-log.md | 1 + docs/render.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/change-log.md b/docs/change-log.md index 19b701a9..81b48762 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -45,6 +45,7 @@ - render: Render state correctly on select change event [#1916](https://github.com/MithrilJS/mithril.js/issues/1916) ([#1918](https://github.com/MithrilJS/mithril.js/pull/1918) [@robinchew](https://github.com/robinchew), [#2052](https://github.com/MithrilJS/mithril.js/pull/2052)) - render: fix various updateNodes/removeNodes issues when the pool and fragments are involved [#1990](https://github.com/MithrilJS/mithril.js/issues/1990), [#1991](https://github.com/MithrilJS/mithril.js/issues/1991), [#2003](https://github.com/MithrilJS/mithril.js/issues/2003), [#2021](https://github.com/MithrilJS/mithril.js/pull/2021) - render: fix element value don't change if new valor is undefined [#2082](https://github.com/MithrilJS/mithril.js/issues/2082) +- render: fix typo, missing `)` --- diff --git a/docs/render.md b/docs/render.md index aefbb172..534a9d45 100644 --- a/docs/render.md +++ b/docs/render.md @@ -36,7 +36,7 @@ Argument | Type | Required | Description ### How it works -The `m.render(element, vnodes)` method takes a virtual DOM tree (typically generated via the [`m()` hyperscript function](hyperscript.md), generates a DOM tree and mounts it on `element`. If `element` already has a DOM tree mounted via a previous `m.render()` call, `vnodes` is diffed against the previous `vnodes` tree and the existing DOM tree is modified only where needed to reflect the changes. Unchanged DOM nodes are not touched at all. +The `m.render(element, vnodes)` method takes a virtual DOM tree (typically generated via the [`m()` hyperscript function](hyperscript.md)), generates a DOM tree and mounts it on `element`. If `element` already has a DOM tree mounted via a previous `m.render()` call, `vnodes` is diffed against the previous `vnodes` tree and the existing DOM tree is modified only where needed to reflect the changes. Unchanged DOM nodes are not touched at all. `m.render` is synchronous.