fix docs for withattr
This commit is contained in:
parent
78e1edd37d
commit
c25b068868
1 changed files with 1 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ Argument | Type | Required | Description
|
||||||
`attrName` | `String` | Yes | The name of the attribute or property whose value will be used
|
`attrName` | `String` | Yes | The name of the attribute or property whose value will be used
|
||||||
`callback` | `any -> Boolean?` | Yes | The callback
|
`callback` | `any -> Boolean?` | Yes | The callback
|
||||||
`thisArg` | `any` | No | An object to bind to the `this` keyword in the callback function
|
`thisArg` | `any` | No | An object to bind to the `this` keyword in the callback function
|
||||||
**returns** | `Event -> Boolean?` | | An event handler function
|
**returns** | `Event -> undefined` | | An event handler function
|
||||||
|
|
||||||
[How to read signatures](signatures.md)
|
[How to read signatures](signatures.md)
|
||||||
|
|
||||||
|
|
@ -134,4 +134,3 @@ var state = {
|
||||||
}
|
}
|
||||||
m("input[type=checkbox]", {onclick: m.withAttr("checked", state.setSelected)})
|
m("input[type=checkbox]", {onclick: m.withAttr("checked", state.setSelected)})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue