mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:32:32 +02:00
Fix liberator.callAsync (thanks 罗春雷)
This commit is contained in:
1 parent
d7b20e26f5
commit
fc0a35e833
1 file changed
+2
-2
@@ -688,8 +688,8 @@ const liberator = (function () //{{{
|
||||
|
||||
callAsync: function (thread, self, func)
|
||||
{
|
||||
hread = thread || service["threadManager"].newThread(0);
|
||||
thread.dispatch(new Runnable(self, func, Array.slice(arguments, 2)), thread.DISPATCH_NORMAL);
|
||||
thread = thread || service["threadManager"].newThread(0);
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user