From 5b5f77690064a1fb602e5b97e935bec65f60eb0d Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Mon, 11 Mar 2019 23:01:04 +0200 Subject: js: expose async commands (match 159379980e) --- DOCS/man/javascript.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'DOCS') diff --git a/DOCS/man/javascript.rst b/DOCS/man/javascript.rst index 184c962a97..77a2ad8817 100644 --- a/DOCS/man/javascript.rst +++ b/DOCS/man/javascript.rst @@ -88,7 +88,7 @@ Scripting APIs - identical to Lua (LE) - Last-Error, indicates that ``mp.last_error()`` can be used after the call to test for success (empty string) or failure (non empty reason string). -Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``. +Where the Lua APIs use ``nil`` to indicate error, JS APIs use ``undefined``. ``mp.command(string)`` (LE) @@ -96,6 +96,9 @@ Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``. ``mp.command_native(table [,def])`` (LE) +``mp.command_native_async(table [,fn])`` (LE) Note: ``error`` is empty string on +success. + ``mp.get_property(name [,def])`` (LE) ``mp.get_property_osd(name [,def])`` (LE) -- cgit v1.2.3