Adding how you could access the DOM element in the new lifecycle methods
This commit is contained in:
parent
9a66495799
commit
578ff6d970
1 changed files with 2 additions and 0 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue