1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 21:42:27 +01:00

Whitespace fixes.

--HG--
extra : rebase_source : 3717d85606cea3b4bab637300a06c54d0af0d8c6
This commit is contained in:
Doug Kearns
2009-11-10 04:54:15 +11:00
parent f09f6120e7
commit bc101175a1
2 changed files with 14 additions and 13 deletions

View File

@@ -558,15 +558,16 @@ const Options = Module("options", {
return (this._optionHash[name].scope & scope) && this._optionHash[name];
for (let opt in Iterator(options)) {
try {
if (opt.hasName(name))
return (opt.scope & scope) && opt;
}catch(e) {
liberator.dump(options.__iterator__);
liberator.dump(opt);
liberator.reportError(e);
throw e
}
try {
if (opt.hasName(name))
return (opt.scope & scope) && opt;
}
catch(e) {
liberator.dump(options.__iterator__);
liberator.dump(opt);
liberator.reportError(e);
throw e;
}
}
return null;

View File

@@ -26,7 +26,7 @@ const Services = Module("services", {
this.add("browserSearch", "@mozilla.org/browser/search-service;1", Ci.nsIBrowserSearchService);
this.add("cache", "@mozilla.org/network/cache-service;1", Ci.nsICacheService);
this.add("console", "@mozilla.org/consoleservice;1", Ci.nsIConsoleService);
this.add("liberator:", "@mozilla.org/network/protocol;1?name=liberator");
this.add("liberator:", "@mozilla.org/network/protocol;1?name=liberator");
this.add("directory", "@mozilla.org/file/directory_service;1", Ci.nsIProperties);
this.add("downloadManager", "@mozilla.org/download-manager;1", Ci.nsIDownloadManager);
this.add("environment", "@mozilla.org/process/environment;1", Ci.nsIEnvironment);
@@ -47,10 +47,10 @@ const Services = Module("services", {
this.add("windowWatcher", "@mozilla.org/embedcomp/window-watcher;1", Ci.nsIWindowWatcher);
this.add("xulAppInfo", "@mozilla.org/xre/app-info;1", Ci.nsIXULAppInfo);
this.addClass("file", "@mozilla.org/file/local;1", Ci.nsILocalFile);
this.addClass("file", "@mozilla.org/file/local;1", Ci.nsILocalFile);
this.addClass("file:", "@mozilla.org/network/protocol;1?name=file", Ci.nsIFileProtocolHandler);
this.addClass("find", "@mozilla.org/embedcomp/rangefind;1", Ci.nsIFind);
this.addClass("process", "@mozilla.org/process/util;1", Ci.nsIProcess);
this.addClass("find", "@mozilla.org/embedcomp/rangefind;1", Ci.nsIFind);
this.addClass("process", "@mozilla.org/process/util;1", Ci.nsIProcess);
},
_create: function (classes, ifaces, meth) {