From 17ee04c00a9adb39c215565674a1df85ac48d321 Mon Sep 17 00:00:00 2001 From: Scott Simpson Date: Tue, 20 Sep 2016 11:09:41 -0700 Subject: [PATCH] fix missing return in BetterLabeledComponent view (#1332) --- docs/hyperscript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hyperscript.md b/docs/hyperscript.md index f6097e9e..af1067e9 100644 --- a/docs/hyperscript.md +++ b/docs/hyperscript.md @@ -370,7 +370,7 @@ var BetterSelect = { // PREFER refactor variability out var BetterLabeledComponent = { view: function(vnode) { - m("div", [ + return m("div", [ m("label", vnode.attrs.title), vnode.children, ])