diff options
Diffstat (limited to 'web/src/js/dispatcher.js')
-rw-r--r-- | web/src/js/dispatcher.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/web/src/js/dispatcher.js b/web/src/js/dispatcher.js index 0c2aa202..b4e22ed9 100644 --- a/web/src/js/dispatcher.js +++ b/web/src/js/dispatcher.js @@ -1,5 +1,5 @@ -var flux = require("flux"); +import flux from "flux"; const PayloadSources = { VIEW: "view", @@ -7,7 +7,7 @@ const PayloadSources = { }; -var AppDispatcher = new flux.Dispatcher(); +export var AppDispatcher = new flux.Dispatcher(); AppDispatcher.dispatchViewAction = function (action) { action.source = PayloadSources.VIEW; this.dispatch(action); @@ -15,8 +15,4 @@ AppDispatcher.dispatchViewAction = function (action) { AppDispatcher.dispatchServerAction = function (action) { action.source = PayloadSources.SERVER; this.dispatch(action); -}; - -module.exports = { - AppDispatcher: AppDispatcher };
\ No newline at end of file |