From 61da8552c44d91ce9dfa1bf6c3003efea42d9892 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Sat, 16 Aug 2014 18:01:01 -0400 Subject: [PATCH] add docs explaining forceSync --- docs/mithril.redraw.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/mithril.redraw.md b/docs/mithril.redraw.md index 188c9220..443a41da 100644 --- a/docs/mithril.redraw.md +++ b/docs/mithril.redraw.md @@ -67,12 +67,16 @@ m.redraw(true) // force [How to read signatures](how-to-read-signatures.md) ```clike -void redraw([Boolean force=false]) { GetterSetter strategy } +void redraw([Boolean forceSync]) { GetterSetter strategy } where: GetterSetter :: String getterSetter([String value]) ``` +- **Boolean forceSync** (optional) + + If set to true, forces the redraw to be synchronous. By default, event handlers schedule redraws to be done asynchronously in order to allow simultaneous events to run before redrawing (for example, the keypress and input are often used together for inputs). Defaults to `false` + - ### m.redraw.strategy