From e8acd486aa60901ec7aa6305bd0cb0b368ae3d44 Mon Sep 17 00:00:00 2001 From: Justin Jung Date: Wed, 15 Jun 2016 17:23:49 -0700 Subject: [PATCH] minor update --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1d1337b..3759ef7 100644 --- a/README.md +++ b/README.md @@ -41,11 +41,10 @@ Treeful.subscribe('todos', callbackTodos); //callbackTodos will get called when the data in 'todos' or 'filter' changes ``` -Get and set data data by calling: +Get and set data by calling: ```js -let oldFilter = Treeful.getData('filter'); //oldFilter = 'all' -let newFilter = 'completed'; -Treeful.setData('filter', newFilter); +let oldData = Treeful.getData('filter'); //oldData = 'all' +Treeful.setData('filter', 'completed'); //Node 'filter' is updated, and it is a child of 'todos' that is subscribed to callbackTodos. ```