ff-stream-web

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

commit 223c28dd56e5f070963926e4b2d92b84eecf32fa
parent b751893184b79641e988be5a1c703bc0bd5a530d
Author: f <fka@fatihak.in>
Date:   Mon, 13 Oct 2014 03:37:52 +0300

change oldie function definitions to ES6 style function definitions

Diffstat:
Msrc/AppDispatcher.js | 8++++----
Msrc/actions/RouteActions.js | 2+-
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/AppDispatcher.js b/src/AppDispatcher.js @@ -15,10 +15,10 @@ var AppDispatcher = copyProperties(new Dispatcher(), { * @param {object} action The details of the action, including the action's * type and additional data coming from the server. */ - handleServerAction: function(action) { + handleServerAction() { var payload = { source: PayloadSources.SERVER_ACTION, - action: action + action }; this.dispatch(payload); }, @@ -27,10 +27,10 @@ var AppDispatcher = copyProperties(new Dispatcher(), { * @param {object} action The details of the action, including the action's * type and additional data coming from the view. */ - handleViewAction: function(action) { + handleViewAction(action) { var payload = { source: PayloadSources.VIEW_ACTION, - action: action + action }; this.dispatch(payload); } diff --git a/src/actions/RouteActions.js b/src/actions/RouteActions.js @@ -9,7 +9,7 @@ var AppActions = { * Set the current route. * @param {string} route Supply a route value, such as `todos/completed`. */ - setRoute: function(route) { + setRoute(route) { AppDispatcher.handleViewAction({ actionType: ActionTypes.SET_CURRENT_ROUTE, route: route