diff options
author | Jason <jason.daurus@gmail.com> | 2016-03-06 20:20:08 +0800 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-03-07 18:47:08 +0800 |
commit | 0545326dc0319923c0746af0dd0746e98528c39c (patch) | |
tree | 5f14bcc5c9ac90fabe2a0aec4bf371f0bed1da12 /web/src/js/components/common.js | |
parent | 34d19cf12e72a50b1d2e6fd1977c559ed9a80068 (diff) | |
download | mitmproxy-0545326dc0319923c0746af0dd0746e98528c39c.tar.gz mitmproxy-0545326dc0319923c0746af0dd0746e98528c39c.tar.bz2 mitmproxy-0545326dc0319923c0746af0dd0746e98528c39c.zip |
[web] eliminate SettingsState
Diffstat (limited to 'web/src/js/components/common.js')
-rw-r--r-- | web/src/js/components/common.js | 22 |
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: { |