diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2019-12-21 12:13:15 +0200 |
---|---|---|
committer | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2019-12-21 14:57:10 +0200 |
commit | 71ddb22b39ec3cce1c39b7f53975e51e94d257d4 (patch) | |
tree | a475a493535ffae5e01eaff0707fb8c75fd7f64e /DOCS/tech-overview.txt | |
parent | 05fb6f906de25016faff2bdedd1f47f1e4077554 (diff) | |
download | mpv-71ddb22b39ec3cce1c39b7f53975e51e94d257d4.tar.bz2 mpv-71ddb22b39ec3cce1c39b7f53975e51e94d257d4.tar.xz |
js: read_options: support on_update (match 478a321d)
This is a bit different than the lua code: on script-opts change it
simply re-applies the conf-file and script-opts to the options object,
and if this results in any changed value at options then on_update is
called with the changelist as argument.
This allows a value to revert back to the conf-file value if the
matching script-opts key had a different value and then got deleted.
It also guarantees to call back whenever the options object is
modified, which the lua code doesn't do (e.g. if the caller changed
a value and the observer changed it back - it won't detect a change).
Diffstat (limited to 'DOCS/tech-overview.txt')
0 files changed, 0 insertions, 0 deletions