From 578ff6d970a30db32c0782f16a7866343a2a19cf Mon Sep 17 00:00:00 2001 From: Stephan Hoyer Date: Wed, 25 May 2016 23:30:49 +0200 Subject: [PATCH] Adding how you could access the DOM element in the new lifecycle methods --- docs/v1.x-migration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/v1.x-migration.md b/docs/v1.x-migration.md index 5f8a4f6a..1e80cbe8 100644 --- a/docs/v1.x-migration.md +++ b/docs/v1.x-migration.md @@ -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`.