update docs about components

This commit is contained in:
Leo Horie 2014-09-26 21:42:36 -04:00
parent c16350de5a
commit 4184da27c8
6 changed files with 270 additions and 242 deletions

View file

@ -127,7 +127,7 @@ For example, you might only be interested in running a redraw if a user presses
```javascript
m("input", {onkeydown: function(e) {
if (e.keyCode == 13) ctrl.save() //do things and re-render only if the `enter` key was pressed
if (e.keyCode == 13) vm.save() //do things and re-render only if the `enter` key was pressed
else m.redraw.strategy("none") //otherwise, ignore
}})
```