From d4386e16fb9706c04744e7c00300f02ab002a7d0 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 1 Sep 2008 07:15:23 +0000 Subject: [PATCH] don't use Cc and Ci globals --- content/muttator.js | 2 +- content/vimperator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/muttator.js b/content/muttator.js index fef47ecb..e4f80c36 100644 --- a/content/muttator.js +++ b/content/muttator.js @@ -62,7 +62,7 @@ liberator.config = { //{{{ ["checkupdates", "Check for updates", function () { checkForUpdates(); }], /*["cleardata", "Clear private data", - function () { Cc[GLUE_CID].getService(Ci.nsIBrowserGlue).sanitize(window || null); }],*/ + function () { Components.classes[GLUE_CID].getService(Components.interfaces.nsIBrowserGlue).sanitize(window || null); }],*/ ["console", "JavaScript console", function () { toJavaScriptConsole(); }], /*["customizetoolbar", "Customize the Toolbar", diff --git a/content/vimperator.js b/content/vimperator.js index a83b3d99..375c7143 100644 --- a/content/vimperator.js +++ b/content/vimperator.js @@ -59,7 +59,7 @@ liberator.config = { //{{{ ["checkupdates", "Check for updates", function () { checkForUpdates(); }], ["cleardata", "Clear private data", - function () { Cc[GLUE_CID].getService(Ci.nsIBrowserGlue).sanitize(window || null); }], + function () { Components.classes[GLUE_CID].getService(Components.interfaces.nsIBrowserGlue).sanitize(window || null); }], ["cookies", "List your cookies", function () { toOpenWindowByType("Browser:Cookies", "chrome://browser/content/preferences/cookies.xul", "chrome,dialog=no,resizable"); }], ["console", "JavaScript console",