1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:07: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

@@ -416,7 +416,8 @@ const vimperator = (function () //{{{
run: function (program, args, blocking)
{
var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);
var file = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
const WINDOWS = navigator.platform == "Win32";
if (!args)
@@ -454,7 +455,8 @@ const vimperator = (function () //{{{
return -1;
}
var process = Cc["@mozilla.org/process/util;1"].createInstance(Ci.nsIProcess);
var process = Components.classes["@mozilla.org/process/util;1"].
createInstance(Components.interfaces.nsIProcess);
process.init(file);
var ec = process.run(blocking, args, args.length);
@@ -721,7 +723,8 @@ const vimperator = (function () //{{{
sleep: function (ms)
{
var threadManager = Cc["@mozilla.org/thread-manager;1"].getService(Ci.nsIThreadManager);
var threadManager = Components.classes["@mozilla.org/thread-manager;1"].
getService(Components.interfaces.nsIThreadManager);
var mainThread = threadManager.mainThread;
var then = new Date().getTime(), now = then;