ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 35fdd34c62a034741fbe877dddc0d3badec7b200
parent 43f35afc20b77bca4b3645b8f8d4f42b9f5f3104
Author: Konstantin Tarkus <hello@tarkus.me>
Date:   Thu, 13 Nov 2014 12:45:20 +0300

Update PageStore

Diffstat:
Msrc/stores/PageStore.js | 13+++----------
1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/stores/PageStore.js b/src/stores/PageStore.js @@ -55,18 +55,11 @@ AppDispatcher.register(function(payload) { var action = payload.action; - switch (action.actionType) - { - case ActionTypes.SET_CURRENT_PAGE: - _page = action.page; - break; - - default: - return true; + if (action.actionType == ActionTypes.SET_CURRENT_PAGE) { + _page = action.page; + PageStore.emitChange(); } - PageStore.emitChange(); - return true; // No errors. Needed by promise in Dispatcher. });