diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-09-16 16:26:16 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-09-16 16:27:09 +1200 |
commit | 6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe (patch) | |
tree | e654b27eeb7a44c61c0e1a43850966735aefb3cd /web/src/js/stores/SettingsStore.es6.js | |
parent | 6bac1540bd9383c4e6e0510d9b75db34346187ed (diff) | |
download | mitmproxy-6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe.tar.gz mitmproxy-6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe.tar.bz2 mitmproxy-6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe.zip |
We're not ready for ES6
Lets re-evaluate in June next year when it's actually released
Diffstat (limited to 'web/src/js/stores/SettingsStore.es6.js')
-rw-r--r-- | web/src/js/stores/SettingsStore.es6.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/web/src/js/stores/SettingsStore.es6.js b/web/src/js/stores/SettingsStore.es6.js deleted file mode 100644 index 29971fa7..00000000 --- a/web/src/js/stores/SettingsStore.es6.js +++ /dev/null @@ -1,27 +0,0 @@ -class _SettingsStore extends EventEmitter { - constructor() { - super(); - - //FIXME: What do we do if we haven't requested anything from the server yet? - this.settings = { - version: "0.12", - showEventLog: true, - mode: "transparent", - }; - } - getAll() { - return this.settings; - } - handle(action) { - switch (action.actionType) { - case ActionTypes.SETTINGS_UPDATE: - this.settings = action.settings; - this.emit("change"); - break; - default: - return; - } - } -} -var SettingsStore = new _SettingsStore(); -AppDispatcher.register(SettingsStore.handle.bind(SettingsStore));
\ No newline at end of file |