From eb17fa3c5d0bd369856b5cb816caa424ea5c3bef Mon Sep 17 00:00:00 2001 From: Dexter Gramfors Date: Sat, 19 Nov 2016 09:30:13 +0100 Subject: [PATCH 1/3] Update External-Resources.md Corrected version number in external project. --- docs/External-Resources.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/External-Resources.md b/docs/External-Resources.md index 18bade2..ec44b91 100644 --- a/docs/External-Resources.md +++ b/docs/External-Resources.md @@ -24,7 +24,7 @@ Templates, examples, and other resources related to re-frame. For additions or m * [Crossed](https://github.com/velveteer/crossed/) by [Velveteer] - A multiplayer crossword puzzle generator. Based on re-frame `0.7.0` -* [imperimetric](https://github.com/Dexterminator/imperimetric) by [Dexter Gramfors] - Webapp for converting texts with some system of measurement to another, such as imperial to metric. Based on re-frame `0.7.0` +* [imperimetric](https://github.com/Dexterminator/imperimetric) by [Dexter Gramfors] - Webapp for converting texts with some system of measurement to another, such as imperial to metric. Based on re-frame `0.8.0` * [Brave Clojure Open Source](https://github.com/braveclojure/open-source) by [Daniel Higginbotham]. A site using re-frame, liberator, boot and more to display active github projects that powers [http://open-source.braveclojure.com](http://open-source.braveclojure.com). Based on re-frame `0.6.0` @@ -68,4 +68,4 @@ Templates, examples, and other resources related to re-frame. For additions or m [Yogthos]:http://yogthos.net/index.html - \ No newline at end of file + From 7b13d572dabbab32e6d9d61f7ff2c874164d950a Mon Sep 17 00:00:00 2001 From: Joe Snikeris Date: Tue, 29 Nov 2016 15:34:41 -0500 Subject: [PATCH 2/3] Minor documentation issue in Interceptors.md --- docs/Interceptors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Interceptors.md b/docs/Interceptors.md index 86c0a50..1c6ae08 100644 --- a/docs/Interceptors.md +++ b/docs/Interceptors.md @@ -310,7 +310,7 @@ Notes: and then calls the handler with that data (a handler must be called with `db` and `event`) 2. Equally notice how this wrapping takes the return value from the `-db` handler and puts it into `context's` `:effect` - 3. The modified `context` (it has a new `:coeffect`) is returned + 3. The modified `context` (it has a new `:effect`) is returned 3. This is all done in `:before`. There is no `:after` (it is a noop). But this could have been reversed with the work happening in `:after` and `:before` a noop. Shrug. Remember that this Interceptor will be on the end of a chain. From 4ad6aa0ae59a240a8eb98d136e8299f69aff738f Mon Sep 17 00:00:00 2001 From: Colin Yates Date: Fri, 2 Dec 2016 17:15:53 +0000 Subject: [PATCH 3/3] minor spelling corrections and formatting --- examples/todomvc/src/todomvc/events.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/todomvc/src/todomvc/events.cljs b/examples/todomvc/src/todomvc/events.cljs index 2797bb5..3d32be9 100644 --- a/examples/todomvc/src/todomvc/events.cljs +++ b/examples/todomvc/src/todomvc/events.cljs @@ -56,14 +56,14 @@ :initialise-db ;; event id being handled [(inject-cofx :local-store-todos) check-spec-interceptor] ;; after the event handler runs, check that app-db matches the spec - (fn [{:keys [db local-store-todos]} _] ;; the handler being registered + (fn [{:keys [db local-store-todos]} _] ;; the handler being registered {:db (assoc default-value :todos local-store-todos)})) ;; all hail the new state ;; usage: (dispatch [:set-showing :active]) (reg-event-db ;; this handler changes the todo filter :set-showing ;; event-id - [check-spec-interceptor (path :showing) trim-v] ;; this colelction of interceptors wrap wrap the handler + [check-spec-interceptor (path :showing) trim-v] ;; this collection of interceptors wrap the handler ;; Because of the path interceptor above, the 1st parameter to ;; the handler below won't be the entire 'db', and instead will @@ -74,7 +74,7 @@ new-filter-kw)) ;; return new state for the path - ;; usage: (dispatch [:add-todo "Finsih comments"]) + ;; usage: (dispatch [:add-todo "Finish comments"]) (reg-event-db ;; given the text, create a new todo :add-todo todo-interceptors