diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-19 21:12:56 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-19 21:12:56 -0500 |
commit | 55b831e4e1d3db3ffcf1d40247018783ca76af8d (patch) | |
tree | e817ed0fc96ae6ee8c1a39619adff070dd86f95d /web/react/dispatcher/app_dispatcher.jsx | |
parent | 5c35c2631e59f895a7b0fb6761c1cae7aee60466 (diff) | |
download | chat-55b831e4e1d3db3ffcf1d40247018783ca76af8d.tar.gz chat-55b831e4e1d3db3ffcf1d40247018783ca76af8d.tar.bz2 chat-55b831e4e1d3db3ffcf1d40247018783ca76af8d.zip |
Upgrading client dependancies. Upgrading to babel 6. Moving to es6 package system.
Diffstat (limited to 'web/react/dispatcher/app_dispatcher.jsx')
-rw-r--r-- | web/react/dispatcher/app_dispatcher.jsx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/web/react/dispatcher/app_dispatcher.jsx b/web/react/dispatcher/app_dispatcher.jsx index 388e82a51..648f0fa0d 100644 --- a/web/react/dispatcher/app_dispatcher.jsx +++ b/web/react/dispatcher/app_dispatcher.jsx @@ -1,17 +1,16 @@ // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. -var Dispatcher = require('flux').Dispatcher; -var assign = require('object-assign'); +import * as Flux from 'flux'; -var Constants = require('../utils/constants.jsx'); -var PayloadSources = Constants.PayloadSources; +import Constants from '../utils/constants.jsx'; +const PayloadSources = Constants.PayloadSources; -var AppDispatcher = assign(new Dispatcher(), { +const AppDispatcher = Object.assign(new Flux.Dispatcher(), { handleServerAction: function performServerAction(action) { var payload = { source: PayloadSources.SERVER_ACTION, - action: action + action }; this.dispatch(payload); }, @@ -19,7 +18,7 @@ var AppDispatcher = assign(new Dispatcher(), { handleViewAction: function performViewAction(action) { var payload = { source: PayloadSources.VIEW_ACTION, - action: action + action }; this.dispatch(payload); } |