fix docs for withattr

This commit is contained in:
Leo 2017-01-23 18:11:28 -05:00
parent 78e1edd37d
commit c25b068868

View file

@ -41,7 +41,7 @@ Argument | Type | Required | Description
`attrName` | `String` | Yes | The name of the attribute or property whose value will be used
`callback` | `any -> Boolean?` | Yes | The callback
`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)
@ -134,4 +134,3 @@ var state = {
}
m("input[type=checkbox]", {onclick: m.withAttr("checked", state.setSelected)})
```