From 8650b1687becd2bce5d0387a6f1ecf7f9134f71a Mon Sep 17 00:00:00 2001 From: Timothy Farrell Date: Fri, 20 Jan 2017 22:29:37 -0600 Subject: [PATCH] A note for added clarity --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9aa64c6..1be7fba 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ inViewport(true); // showDialog marked as dirty but does not recompute its store shouldShow(true); // showDialog is already marked as dirty. Nothing else happens. showDialog(); // showDialog recomputes its stored result and unsets the dirty flag. +// adding a subscription will change showDialog's internal behavior showDialog.subscribe(console.log.bind(console)); inViewport(false); // showDialog result recomputed and `false` is written to the console.