1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 18:14:12 +01:00

Whitespace fixes.

This commit is contained in:
Doug Kearns
2010-10-09 21:45:52 +11:00
parent 86efd0bb6a
commit 8be0558982
7 changed files with 11 additions and 14 deletions

View File

@@ -630,7 +630,6 @@ const Dactyl = Module("dactyl", {
</item></>.toXMLString(), true);
},
/**
* Opens the help page containing the specified <b>topic</b> if it
* exists.
@@ -824,7 +823,7 @@ const Dactyl = Module("dactyl", {
break;
}
}
catch(e) {}
catch (e) {}
// Unfortunately, failed page loads throw exceptions and
// cause a lot of unwanted noise. This solution means that
// any genuine errors go unreported.

View File

@@ -746,7 +746,7 @@ const Events = Module("events", {
return;
}
if(isinstance(elem, [HTMLEmbedElement, HTMLEmbedElement])) {
if (isinstance(elem, [HTMLEmbedElement, HTMLEmbedElement])) {
dactyl.mode = modes.EMBED;
return;
}
@@ -1027,7 +1027,7 @@ const Events = Module("events", {
onMouseDown: function (event) {
let elem = event.target;
let win = elem.ownerDocument && elem.ownerDocument.defaultView || elem;
for(; win; win = win != win.parent && win.parent)
for (; win; win = win != win.parent && win.parent)
win.dactylFocusAllowed = true;
},

View File

@@ -67,7 +67,6 @@ const IO = Module("io", {
services.get("downloadManager").addListener(this.downloadListener);
},
// TODO: there seems to be no way, short of a new component, to change
// the process's CWD - see https://bugzilla.mozilla.org/show_bug.cgi?id=280953
/**

View File

@@ -17,10 +17,10 @@ const Marks = Module("marks", {
this._urlMarks = storage.newMap("url-marks", { privateData: true, replacer: replacer, store: true });
try {
if(isArray(Iterator(this._localMarks).next()[1]))
if (isArray(Iterator(this._localMarks).next()[1]))
this._localMarks.clear();
}
catch(e) {}
catch (e) {}
this._pendingJumps = [];
},