1
0
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:
Kris Maglione
2008-12-21 18:39:09 -05:00
parent d7b20e26f5
commit fc0a35e833

View File

@@ -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