mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 09:55:47 +01:00
Fix liberator.callAsync (thanks 罗春雷)
This commit is contained in:
@@ -688,8 +688,8 @@ const liberator = (function () //{{{
|
|||||||
|
|
||||||
callAsync: function (thread, self, func)
|
callAsync: function (thread, self, func)
|
||||||
{
|
{
|
||||||
hread = thread || service["threadManager"].newThread(0);
|
thread = thread || service["threadManager"].newThread(0);
|
||||||
thread.dispatch(new Runnable(self, func, Array.slice(arguments, 2)), thread.DISPATCH_NORMAL);
|
thread.dispatch(new Runnable(self, func, Array.slice(arguments, 3)), thread.DISPATCH_NORMAL);
|
||||||
},
|
},
|
||||||
|
|
||||||
// be sure to call GUI related methods like alert() or dump() ONLY in the main thread
|
// be sure to call GUI related methods like alert() or dump() ONLY in the main thread
|
||||||
|
|||||||
Reference in New Issue
Block a user