aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/common.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-03-08 20:34:37 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-03-08 20:34:37 +0100
commit7fa95aabbbbcc7185f6d8a80652e499142812b93 (patch)
tree51ec52f0338f6c53b8c7b7c05db6cfe0cdb4f6f0 /web/src/js/components/common.js
parent47fa843795dcc9ac6260592be04172d5596e5ff9 (diff)
parentea3742c3938248c273be159d15ac49b4d2884ed8 (diff)
downloadmitmproxy-7fa95aabbbbcc7185f6d8a80652e499142812b93.tar.gz
mitmproxy-7fa95aabbbbcc7185f6d8a80652e499142812b93.tar.bz2
mitmproxy-7fa95aabbbbcc7185f6d8a80652e499142812b93.zip
Merge branch 'master' of https://github.com/mitmproxy/mitmproxy
Diffstat (limited to 'web/src/js/components/common.js')
-rw-r--r--web/src/js/components/common.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/web/src/js/components/common.js b/web/src/js/components/common.js
index 5fae7415..447e6eec 100644
--- a/web/src/js/components/common.js
+++ b/web/src/js/components/common.js
@@ -29,40 +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 ChildFocus = {
- contextTypes: {
- returnFocus: React.PropTypes.func
- },
- returnFocus: function () {
- ReactDOM.findDOMNode(this).blur();
- window.getSelection().removeAllRanges();
- this.context.returnFocus();
- }
-};
-
export var Router = {
contextTypes: {