Merge pull request #11 from sparecycles/doc/typo-fix
change isNew->isInitialized in doc
This commit is contained in:
commit
295833ffcb
2 changed files with 3 additions and 3 deletions
|
|
@ -194,7 +194,7 @@ VirtualElement m(String selector [, Attributes attributes] [, Children children]
|
||||||
|
|
||||||
where:
|
where:
|
||||||
VirtualElement :: Object { String tag, Attributes attributes, Children children }
|
VirtualElement :: Object { String tag, Attributes attributes, Children children }
|
||||||
Attributes :: Object<any | void config(DOMElement element, Boolean isNew)>
|
Attributes :: Object<any | void config(DOMElement element, Boolean isInitialized)>
|
||||||
Children :: String text | Array<String text | VirtualElement virtualElement | Children children>
|
Children :: String text | Array<String text | VirtualElement virtualElement | Children children>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -256,7 +256,7 @@ where:
|
||||||
|
|
||||||
- #### The `config` attribute
|
- #### 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.
|
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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -213,7 +213,7 @@ See [`m()`](mithril.md) for more information on virtual elements.
|
||||||
[How to read signatures](how-to-read-signatures.md)
|
[How to read signatures](how-to-read-signatures.md)
|
||||||
|
|
||||||
```clike
|
```clike
|
||||||
void route(DOMElement element, Boolean isNew)
|
void route(DOMElement element, Boolean isInitialized)
|
||||||
```
|
```
|
||||||
|
|
||||||
- **DOMElement element**
|
- **DOMElement element**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue