Fix docstring references to old fns

This commit is contained in:
Gabriel Horner 2016-02-15 08:55:10 -05:00
parent 1ceb5acc63
commit 7b6afc350c
2 changed files with 3 additions and 3 deletions

View File

@ -21,14 +21,14 @@
(register-handler ;; setup initial state
:initialize ;; usage: (submit [:initialize])
:initialize ;; usage: (dispatch [:initialize])
(fn
[db _]
(merge db initial-state))) ;; what it returns becomes the new state
(register-handler
:time-color ;; usage: (submit [:time-color 34562])
:time-color ;; usage: (dispatch [:time-color 34562])
(path [:time-color]) ;; this is middleware
(fn
[time-color [_ value]] ;; path middleware adjusts the first parameter

View File

@ -18,7 +18,7 @@
You don't have to use this middleware directly. It is automatically applied to
your handler's middleware when you use \"register-handler\".
In fact, the only way to by-pass automatic use of \"pure\" in your middleware
is to use the low level registration function \"re-frame.handlers/register-handler-base\""
is to use the low level registration function \"re-frame.handlers/register-base\""
[handler]
(fn pure-handler
[app-db event-vec]