aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/common.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-03-07 17:58:27 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-03-07 17:58:27 +0100
commitea3742c3938248c273be159d15ac49b4d2884ed8 (patch)
treed128af8eb295ed29f76793514624078f7c0d0b46 /web/src/js/components/common.js
parent34d19cf12e72a50b1d2e6fd1977c559ed9a80068 (diff)
parentca9a493a1c20651d111ab06f43437d97b7104705 (diff)
downloadmitmproxy-ea3742c3938248c273be159d15ac49b4d2884ed8.tar.gz
mitmproxy-ea3742c3938248c273be159d15ac49b4d2884ed8.tar.bz2
mitmproxy-ea3742c3938248c273be159d15ac49b4d2884ed8.zip
Merge pull request #1009 from gzzhanghao/settings
[web] eliminate SettingsState
Diffstat (limited to 'web/src/js/components/common.js')
-rw-r--r--web/src/js/components/common.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/web/src/js/components/common.js b/web/src/js/components/common.js
index 293cff49..447e6eec 100644
--- a/web/src/js/components/common.js
+++ b/web/src/js/components/common.js
@@ -29,28 +29,6 @@ export var StickyHeadMixin = {
}
};
-export var SettingsState = {
- contextTypes: {
- settingsStore: React.PropTypes.object.isRequired
- },
- getInitialState: function () {
- return {
- settings: this.context.settingsStore.dict
- };
- },
- componentDidMount: function () {
- this.context.settingsStore.addListener("recalculate", this.onSettingsChange);
- },
- componentWillUnmount: function () {
- this.context.settingsStore.removeListener("recalculate", this.onSettingsChange);
- },
- onSettingsChange: function () {
- this.setState({
- settings: this.context.settingsStore.dict
- });
- },
-};
-
export var Router = {
contextTypes: {