diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2017-12-22 13:50:38 +0200 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-04-07 16:02:19 -0700 |
commit | 9a47023c444df488ff51c8f86fbd1b1b93e99a9b (patch) | |
tree | 1ec4e64361565deb06836f4c76cd72ccc214aa71 /TOOLS/__init__.py | |
parent | b04f0cad43eb627fb4e970367062329e3331d9fe (diff) | |
download | mpv-9a47023c444df488ff51c8f86fbd1b1b93e99a9b.tar.bz2 mpv-9a47023c444df488ff51c8f86fbd1b1b93e99a9b.tar.xz |
js: implement mp.register_idle
Due to earlier misinterpretation of the Lua docs as if mp.register_idle
registers a one-shot callback, the JS docs suggested to use setTimeout.
But the behavior and Lua docs are such that it's a repeating callback
which fires just before the script thread goes to sleep.
Implement it for JS too.
Diffstat (limited to 'TOOLS/__init__.py')
0 files changed, 0 insertions, 0 deletions