diff options
Diffstat (limited to 'web/src/js/dispatcher.js')
-rw-r--r-- | web/src/js/dispatcher.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/web/src/js/dispatcher.js b/web/src/js/dispatcher.js deleted file mode 100644 index 0c2aa202..00000000 --- a/web/src/js/dispatcher.js +++ /dev/null @@ -1,22 +0,0 @@ - -var flux = require("flux"); - -const PayloadSources = { - VIEW: "view", - SERVER: "server" -}; - - -var AppDispatcher = new flux.Dispatcher(); -AppDispatcher.dispatchViewAction = function (action) { - action.source = PayloadSources.VIEW; - this.dispatch(action); -}; -AppDispatcher.dispatchServerAction = function (action) { - action.source = PayloadSources.SERVER; - this.dispatch(action); -}; - -module.exports = { - AppDispatcher: AppDispatcher -};
\ No newline at end of file |