summaryrefslogtreecommitdiffstats
path: root/web/react/dispatcher/app_dispatcher.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-09-02 12:41:16 -0700
committerCorey Hulen <corey@hulen.com>2015-09-02 12:41:16 -0700
commit833f6b7df123f25d5aa6bee6aee0c90c82b74c38 (patch)
tree191b16707373caa2aeecb77d40af64ffe05815db /web/react/dispatcher/app_dispatcher.jsx
parenteaeab0d645ca69efb4a0b47b802db750a6f54136 (diff)
parentaac83dcedc644dfc23fc46366e54c65e0c86c5b9 (diff)
downloadchat-833f6b7df123f25d5aa6bee6aee0c90c82b74c38.tar.gz
chat-833f6b7df123f25d5aa6bee6aee0c90c82b74c38.tar.bz2
chat-833f6b7df123f25d5aa6bee6aee0c90c82b74c38.zip
Merge pull request #539 from rgarmsen2295/reformat_part_one
MM-2063 Cosmetic Refactoring
Diffstat (limited to 'web/react/dispatcher/app_dispatcher.jsx')
-rw-r--r--web/react/dispatcher/app_dispatcher.jsx30
1 files changed, 14 insertions, 16 deletions
diff --git a/web/react/dispatcher/app_dispatcher.jsx b/web/react/dispatcher/app_dispatcher.jsx
index 4ae28e8eb..04e026f46 100644
--- a/web/react/dispatcher/app_dispatcher.jsx
+++ b/web/react/dispatcher/app_dispatcher.jsx
@@ -8,23 +8,21 @@ var Constants = require('../utils/constants.jsx');
var PayloadSources = Constants.PayloadSources;
var AppDispatcher = assign(new Dispatcher(), {
+ handleServerAction: function performServerAction(action) {
+ var payload = {
+ source: PayloadSources.SERVER_ACTION,
+ action: action
+ };
+ this.dispatch(payload);
+ },
- handleServerAction: function(action) {
- var payload = {
- source: PayloadSources.SERVER_ACTION,
- action: action
- };
- this.dispatch(payload);
- },
-
- handleViewAction: function(action) {
- var payload = {
- source: PayloadSources.VIEW_ACTION,
- action: action
- };
- this.dispatch(payload);
- }
-
+ handleViewAction: function performViewAction(action) {
+ var payload = {
+ source: PayloadSources.VIEW_ACTION,
+ action: action
+ };
+ this.dispatch(payload);
+ }
});
module.exports = AppDispatcher;