summaryrefslogtreecommitdiffstats
path: root/DOCS/man
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2019-12-22 14:17:22 +0200
committerAvi Halachmi (:avih) <avihpit@yahoo.com>2019-12-22 14:51:13 +0200
commitb670838b3d8970db1932b3f83fedb7edaa324c80 (patch)
treebe10617c1a72caef1fb051e3bf1f025eba7b0713 /DOCS/man
parent3267bcd210af431c7f8b22f4a7653d3881209b36 (diff)
downloadmpv-b670838b3d8970db1932b3f83fedb7edaa324c80.tar.bz2
mpv-b670838b3d8970db1932b3f83fedb7edaa324c80.tar.xz
js: read_options: on_update: don't re-read the config file
Now that 00af718a made the lua read_options behavior much more similar to the js behavior, the main difference was that lua does not re-read the config file at on_update (but it does re-apply its stored content) while js did re-read it. Now the js on_update also does not re-read the config file and instead applies its stored original content. This is slightly hacky by adding an undocumented optional 4th argument to read_options which allows overriding the config file content.
Diffstat (limited to 'DOCS/man')
-rw-r--r--DOCS/man/javascript.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/DOCS/man/javascript.rst b/DOCS/man/javascript.rst
index 8e3e7d6199..db12b65a09 100644
--- a/DOCS/man/javascript.rst
+++ b/DOCS/man/javascript.rst
@@ -188,7 +188,7 @@ success, ``fn`` is called always a-sync, ``error`` is empty string on success.
``mp.add_hook(type, priority, fn)``
``mp.options.read_options(obj [, identifier [, on_update]])`` (types:
-string/boolean/number, ``on_update`` does re-read the config file)
+string/boolean/number)
Additional utilities
--------------------