From 0d819f082b1e2faf7d790934e10f2270f9e6bd78 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Wed, 18 Feb 2015 22:05:52 -0500 Subject: [PATCH] ordered list in docs --- docs/components.md | 1 + docs/mithril.module.md | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/components.md b/docs/components.md index b6ee29e3..5427f3ce 100644 --- a/docs/components.md +++ b/docs/components.md @@ -130,6 +130,7 @@ m.module(document.body, MyApp) There are a few caveats to using modules as components: 1 - component views must return a virtual element. Returning an array, a string, a number, boolean, falsy value, etc will result in an error. This limitation exists in order to support the correctness of unloading semantics component identity. + 2 - components cannot change `m.redraw.strategy` from the controller constructor (but they can from event handlers). diff --git a/docs/mithril.module.md b/docs/mithril.module.md index a7a13e73..f11e1728 100644 --- a/docs/mithril.module.md +++ b/docs/mithril.module.md @@ -285,6 +285,7 @@ m.module(document.body, MyApp) There are a few caveats to using modules as components: 1 - component views must return a virtual element. Returning an array, a string, a number, boolean, falsy value, etc will result in an error. This limitation exists in order to support the correctness of unloading semantics component identity. + 2 - components cannot change `m.redraw.strategy` from the controller constructor (but they can from event handlers). ---