aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/Header/MenuToggle.jsx
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-12-03 09:42:14 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-12-08 10:21:06 +1300
commit0c091bd92b9f0f59c65cf392f334719294ef397e (patch)
tree353dfb281e24cdb15af483f44cc0e97184b2d139 /web/src/js/components/Header/MenuToggle.jsx
parentb231836c70a68daa6016537e5ec18ed7a7cc3b1a (diff)
downloadmitmproxy-0c091bd92b9f0f59c65cf392f334719294ef397e.tar.gz
mitmproxy-0c091bd92b9f0f59c65cf392f334719294ef397e.tar.bz2
mitmproxy-0c091bd92b9f0f59c65cf392f334719294ef397e.zip
Options - avoid mutation, API cleanup, has_changed
- Always return a deepcopy of options to avoid accidental mutation of options state. - Remove .get(opt, default). This is an inappropriate API for Options - trying to retrieve an option that doesn't exist should always be an error. - Add the has_changed method that checks if an option differs from the default, use it in mitmproxy console.
Diffstat (limited to 'web/src/js/components/Header/MenuToggle.jsx')
0 files changed, 0 insertions, 0 deletions