1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 20:37:58 +01:00

get rid of Cc/Ci, as that's thunderbird incompatible

This commit is contained in:
Martin Stubenschrott
2008-02-01 17:52:41 +00:00
parent e2e42c83c8
commit a994d42a56
6 changed files with 17 additions and 32 deletions

View File

@@ -405,7 +405,8 @@ vimperator.Events = function () //{{{
function waitForPageLoaded()
{
dump("start waiting in loaded state: " + vimperator.buffer.loaded + "\n");
var mainThread = Cc["@mozilla.org/thread-manager;1"].getService(Ci.nsIThreadManager).mainThread;
var mainThread = Components.classes["@mozilla.org/thread-manager;1"].
getService(Components.interfaces.nsIThreadManager).mainThread;
while (mainThread.hasPendingEvents()) // clear queue
mainThread.processNextEvent(true);