Adding how you could access the DOM element in the new lifecycle methods

This commit is contained in:
Stephan Hoyer 2016-05-25 23:30:49 +02:00
parent 9a66495799
commit 578ff6d970

View file

@ -42,6 +42,8 @@ m("div", {
});
```
If available the DOM-Element of the vnode can be accessed at `vnode.dom`.
## Cancelling redraw from event handlers
`m.mount()` and `m.route()` still automatically redraw after a DOM event handler runs. Cancelling these redraws from within your event handlers is now done by setting the `redraw` property on the passed-in event object to `false`.