Permalink
Browse files

FIX: codestyle issues (Components.classes->Cc, Components.interfaces-…

…>Ci, empty lines and tabs issues)
  • Loading branch information...
1 parent 0e7439a commit cc97aa8fe5274a73242f93aae14a68155b51e6de @rpl committed Dec 9, 2009
Showing with 7 additions and 9 deletions.
  1. +7 −9 chrome/content/repl.js
@@ -476,29 +476,27 @@ doc.doc =
function reloadChrome() {
try {
- Components.classes["@mozilla.org/chrome/chrome-registry;1"].
- getService(Components.interfaces.nsIXULChromeRegistry).reloadChrome();
+ Cc["@mozilla.org/chrome/chrome-registry;1"].
+ getService(Ci.nsIXULChromeRegistry).reloadChrome();
} catch(e) { this.print('Exception while reloading chrome: '+e); }
}
-
reloadChrome.doc = "Reload all chrome packages";
-function debugPrefs(enabled) {
+function setDebugPrefs(enabled) {
try {
var dbgPrefs = ["nglayout.debug.disable_xul_cache",
"javascript.options.showInConsole",
"browser.dom.window.dump.enabled"];
- var prefs = Components.classes["@mozilla.org/preferences-service;1"]
- .getService(Components.interfaces.nsIPrefBranch);
+ var prefs = Cc["@mozilla.org/preferences-service;1"]
+ .getService(Ci.nsIPrefBranch);
for each (let pname in dbgPrefs) {
- prefs.setBoolPref(pname, enabled);
+ prefs.setBoolPref(pname, enabled);
}
} catch(e) { this.print('Exception while setting debugging preferences: '+e); }
}
-
-debugPrefs.doc = "Enable/Disable common debugging preferences";
+setDebugPrefs.doc = "Enable/Disable common debugging preferences";
// INTERACTOR HANDLING
// ----------------------------------------------------------------------

0 comments on commit cc97aa8

Please sign in to comment.