commit 6b09b64800f5ff891db5cb3138c72154760a1d32
parent b751893184b79641e988be5a1c703bc0bd5a530d
Author: Konstantin Tarkus <koistya@gmail.com>
Date: Mon, 13 Oct 2014 04:49:36 +0400
Merge pull request #26 from f/master
Convert oldie codes to Harmony supported versions
Diffstat:
2 files changed, 6 insertions(+), 6 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,10 +9,10 @@ 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
+ route
});
}