From 7e98ad6d745ce09afeb24a7a1c191ea2139e97c7 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Thu, 26 May 2016 15:26:04 -0400 Subject: [PATCH] fix shouldUpdate docs --- docs/hyperscript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hyperscript.md b/docs/hyperscript.md index 7c66c5a8..35b09432 100644 --- a/docs/hyperscript.md +++ b/docs/hyperscript.md @@ -248,7 +248,7 @@ Hook | Description `onupdate(vnode)` | Runs every time a redraw occurs while the DOM element is attached to the document `onbeforeremove(vnode, done)` | Runs before a DOM element is removed from the document, and only triggers the actual removal of the DOM element when the `done` callback is called. This method is only triggered on the element that is detached from its parent DOM element, but not on its child elements. `onremove(vnode)` | Runs before a DOM element is removed from the document. If a `onbeforeremove` hook is defined, `onremove` is called after `done` is called. This method is triggered on the element that is detached from its parent element, and all of its children -`shouldUpdate(vnode, old)` | Runs before `onupdate` and if it returns `true`, it prevents a diff for the element and all of its children +`shouldUpdate(vnode, old)` | Runs before `onupdate` and if it returns `false`, it prevents a diff for the element and all of its children To learn more about lifecycle methods, [see the lifecycle methods page](lifecycle-methods.md).