From 9617859068f16f9e736f321104b2088b75349a97 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Tue, 4 Nov 2014 21:29:13 -0500 Subject: [PATCH] improve docs --- docs/mithril.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/mithril.md b/docs/mithril.md index 2241831c..05496f79 100644 --- a/docs/mithril.md +++ b/docs/mithril.md @@ -137,6 +137,9 @@ m("button", {onclick: alert}); //yields , which alerts its even //note this uses the Javascript syntax (uppercase "O") for `readonly` //in order to set the boolean javascript property instead of the HTML attribute m("input", {readOnly: true}); //yields + +//using the HTML attribute name will call `setAttribute`, which may not be what you want +m("input", {readonly: false}); //yields , which is still readonly ``` ---