summaryrefslogtreecommitdiffstats
path: root/web/react/dispatcher/app_dispatcher.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-08-31 09:35:31 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-09-02 08:30:23 -0700
commite2a24f40b750886156cef33a38218315c06aef35 (patch)
treee9aca4d43db86b78e3bb0e646dfe303ddc909565 /web/react/dispatcher/app_dispatcher.jsx
parent5b81125e4db03753c6a2b6076e8303b252e7232c (diff)
downloadchat-e2a24f40b750886156cef33a38218315c06aef35.tar.gz
chat-e2a24f40b750886156cef33a38218315c06aef35.tar.bz2
chat-e2a24f40b750886156cef33a38218315c06aef35.zip
Cosmetic reformatting of multiple jsx files
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;