diff --git a/docs/mithril.md b/docs/mithril.md index 285c8215..3cd7a437 100644 --- a/docs/mithril.md +++ b/docs/mithril.md @@ -194,7 +194,7 @@ VirtualElement m(String selector [, Attributes attributes] [, Children children] where: VirtualElement :: Object { String tag, Attributes attributes, Children children } - Attributes :: Object + Attributes :: Object Children :: String text | Array ``` @@ -256,7 +256,7 @@ where: - #### The `config` attribute - **void config(DOMElement element, Boolean isNew)** (optional) + **void config(DOMElement element, Boolean isInitialized)** (optional) You can define a non-HTML-standard attribute called `config`. This special parameter allows you to call methods on the DOM element after it gets created. diff --git a/docs/mithril.route.md b/docs/mithril.route.md index 4721c18d..107b62ab 100644 --- a/docs/mithril.route.md +++ b/docs/mithril.route.md @@ -213,7 +213,7 @@ See [`m()`](mithril.md) for more information on virtual elements. [How to read signatures](how-to-read-signatures.md) ```clike -void route(DOMElement element, Boolean isNew) +void route(DOMElement element, Boolean isInitialized) ``` - **DOMElement element**