From acd834a8b1e111a56554b7292f27d099fce44322 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Mon, 16 May 2016 03:37:19 +0700 Subject: [PATCH] choo: update internal fn name --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 4393277..5ef1193 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ function choo (opts) { function start () { const events = bootstrap(_models) const send = sendAction({ - onaction: events.modifyState, + onaction: events.handleAction, onchange: onchange, state: events.state }) @@ -63,6 +63,7 @@ function choo (opts) { // [obj|fn] -> null function router (cb) { _router = sheetRouter(cb) + return _router } // create a new model @@ -108,11 +109,11 @@ function bootstrap (events) { }) return { - modifyState: modifyState, + handleAction: handleAction, state: initialState } - function modifyState (action, state, send) { + function handleAction (action, state, send) { var _reducers = false var _effects = false var newState = null