From 1fce18069d3c081ac49ea80077d1c8b44cecf152 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Mon, 17 Nov 2014 23:13:26 -0500 Subject: [PATCH] improve comment clarity --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index 19dd41b9..7a5d5a93 100644 --- a/mithril.js +++ b/mithril.js @@ -88,7 +88,7 @@ Mithril = m = new function app(window, undefined) { //`configs` is a list of config functions to run after the topmost `build` call finishes running //there's logic that relies on the assumption that null and undefined data are equivalent to empty strings - //- this prevents lifecycle surprises from procedural helpers that mix implicit and explicit return statements + //- this prevents lifecycle surprises from procedural helpers that mix implicit and explicit return statements (e.g. function foo() {if (cond) return m("div")} //- it simplifies diffing code if (data == null) data = ""; if (data.subtree === "retain") return cached;