mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 05:47:58 +01:00
Whitespace fixes.
--HG-- extra : rebase_source : 7bc98c4cf1a8ca89cfbfb1f96ffe9fa72565c663
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
|
||||
/** @scope modules */
|
||||
|
||||
|
||||
/**
|
||||
* A structure representing the options available for a command.
|
||||
*
|
||||
@@ -149,7 +148,6 @@ const Command = Class("Command", {
|
||||
if (args.bang && !this.bang)
|
||||
throw FailedAssertion("E477: No ! allowed");
|
||||
|
||||
|
||||
dactyl.trapErrors(function exec(command) {
|
||||
if (this.always)
|
||||
this.always(args, modifiers);
|
||||
|
||||
@@ -134,7 +134,8 @@ defineModule.time = function time(major, minor, func, self) {
|
||||
let time = Date.now();
|
||||
try {
|
||||
var res = func.apply(self, Array.slice(arguments, 4));
|
||||
} catch (e) {
|
||||
}
|
||||
catch (e) {
|
||||
loaded.util && util.reportError(e);
|
||||
}
|
||||
let delta = Date.now() - time;
|
||||
|
||||
@@ -504,7 +504,8 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
||||
(function rec(frame) {
|
||||
try {
|
||||
res = res.concat(util.subdomains(frame.location.host));
|
||||
} catch (e) {}
|
||||
}
|
||||
catch (e) {}
|
||||
Array.forEach(frame.frames, rec);
|
||||
})(window.content);
|
||||
if (context.filter && !res.some(function (host) host.indexOf(context.filter) >= 0))
|
||||
|
||||
@@ -55,7 +55,6 @@ const Services = Module("Services", {
|
||||
this.add("windowMediator", "@mozilla.org/appshell/window-mediator;1", Ci.nsIWindowMediator);
|
||||
this.add("windowWatcher", "@mozilla.org/embedcomp/window-watcher;1", Ci.nsIWindowWatcher);
|
||||
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user