Fix small typos in the rewrite docs (#1533)
This commit is contained in:
parent
68f832d776
commit
7a4349c332
3 changed files with 3 additions and 3 deletions
|
|
@ -170,7 +170,7 @@ Mithril supports both strings and objects as valid `style` values. In other word
|
|||
```javascript
|
||||
m("div", {style: "background:red;"})
|
||||
m("div", {style: {background: "red"}})
|
||||
m("div[style=background:red")
|
||||
m("div[style=background:red]")
|
||||
```
|
||||
|
||||
Using a string as a `style` would overwrite all inline styles in the element if it is redrawn, and not only CSS rules whose values have changed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue