From 592f31ee3d11d7baf2cdc35857af5268a20d2d21 Mon Sep 17 00:00:00 2001 From: pelonpelon Date: Thu, 7 May 2015 08:51:36 -0500 Subject: [PATCH] Clarification on m.mount() signature --- docs/mithril.mount.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mithril.mount.md b/docs/mithril.mount.md index 76edfc9f..b742224b 100644 --- a/docs/mithril.mount.md +++ b/docs/mithril.mount.md @@ -62,7 +62,7 @@ where: - **Component component** - A component is supposed to be an Object with two keys: `controller` and `view`. Each of those should point to a Javascript function + A component is supposed to be an Object with two keys: `controller` and `view`. Each of those should point to a Javascript function. If the `controller` is omitted, Mithril will provide one, pointing to an empty function. When `m.mount` is called, the controller function runs, and its return value is returned by the `m.mount` call.