diff --git a/package.json b/package.json index 1a56e50..3b2935d 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "d3-time-format": "^4.1.0", "es6-promise": "^4.2.8", "file-saver": "^2.0.5", - "flux": "^4.0.3", "gaugeJS": "^1.3.7", "handlebars": "^4.7.7", "isomorphic-form-data": "^2.0.0", diff --git a/src/common/FluxContainerConverter.js b/src/common/FluxContainerConverter.js deleted file mode 100644 index 9d1b371..0000000 --- a/src/common/FluxContainerConverter.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file is part of VILLASweb. - * - * VILLASweb is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VILLASweb is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VILLASweb. If not, see . - ******************************************************************************/ - -/// FluxContainerConverter.js -/// ATTENTION!!! This is an ugly workaround found here https://github.com/facebook/flux/issues/351 to make Flux Containers work with ES6 - - -function convert(containerClass) { - const tmp = containerClass; - containerClass = function(...args) { - return new tmp(...args); - }; - containerClass.prototype = tmp.prototype; - containerClass.getStores = tmp.getStores; - containerClass.calculateState = tmp.calculateState; - return containerClass; -} - -export {convert} -