diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-12-03 09:42:14 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-12-08 10:21:06 +1300 |
commit | 2cb1f7038196d31ecdd4190c009dc63a1f6d0538 (patch) | |
tree | 1083563f935e93240dcf67601dbbe4fca3c25cc0 /web/src/js/components/common/Button.jsx | |
parent | 00c897a185b4bba7116fa22d14214dff68ce6e69 (diff) | |
download | mitmproxy-2cb1f7038196d31ecdd4190c009dc63a1f6d0538.tar.gz mitmproxy-2cb1f7038196d31ecdd4190c009dc63a1f6d0538.tar.bz2 mitmproxy-2cb1f7038196d31ecdd4190c009dc63a1f6d0538.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/common/Button.jsx')
0 files changed, 0 insertions, 0 deletions