Skip to content

Commit 150e346

Browse files
committed
fixes conflict
2 parents aea911e + 6fa6d02 commit 150e346

File tree

7 files changed

+226
-201
lines changed

7 files changed

+226
-201
lines changed

API.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@
1717
| <code>reRender(Object &#124; Function)</code> | Set the properties of a component instance. Can also take a function which will receive the current props as an argument. |
1818
| `getProps()` | Get the properties of a component instance. |
1919
| <code>setState(Object &#124; Function)</code> | Set the state of a component instance. Can also take a function which will receive the current props as an argument. |
20-
| `stylesheet()` | Returns a string of css to be lazily added to a `style` tag in the head. |
21-
| `styles()` | Returns an object that represents inline-styles to be applied to the component. Styles are applied by adding a keys from the object to the `styles` attribute of an html tag in the render function, for example `styles="key1 key2"`. Each object's key-value pair are added to the element's style object. |
22-
| `render()` | Returns HTML to be parsed or a dom node that will overwrite. There is usually no need to call this directly, prefer `componentInstance.reRender({ ... })`. |
20+
| `stylesheet()` | Should return a string of css to be lazily added to a `style` tag in the head. |
21+
| `styles()` | Should return an object that represents inline-styles to be applied to the component. Styles are applied by adding a keys from the object to the `styles` attribute of an html tag in the render function, for example `styles="key1 key2"`. Each object's key-value pair are added to the element's style object. |
22+
| `render()` | Should return HTML or nodes to be parsed or a dom node that will overwrite. There is usually no need to call this directly, prefer `componentInstance.reRender({ ... })`. |
2323
| html\`...\` | Tidy up an HTML string (use as a [tagged template][2]). |
2424

2525
## INSTANCE PROPERTIES
2626

2727
| Name | Description |
2828
| :--- | :--- |
29-
| <code>children</code> | An array of nodes, the original child nodes of the component. |
29+
| <code>childElements</code> | An array of nodes, the original child *elements* of the component. |
30+
| <code>childNodes</code> | An array of nodes, the original child *nodes* of the component. |
31+
| <code>props</code> | An object that contains the properties that were passed to the component. |
32+
| <code>state</code> | A plain-old JSON object that contains the state of the component. |
3033

3134
## "LIFECYCLE" INSTANCE METHODS
3235

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![tonic](https://github.com/hxoht/tonic/raw/addimage/readme-tonic.png)
1+
![tonic](https://raw.githubusercontent.com/heapwolf/tonic/master/readme-tonic.png)
22

33
<p align="center">
44
https://tonic.technology

dist/tonic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)