1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 17:27:58 +01:00

Whitespace fixes.

--HG--
extra : rebase_source : 8668ae131079523322e32f068e1b48bea64b4f72
This commit is contained in:
Doug Kearns
2010-09-22 13:35:11 +10:00
parent 877ea957ca
commit 60eac8d752
14 changed files with 18 additions and 19 deletions

View File

@@ -664,8 +664,7 @@ const Dactyl = Module("dactyl", {
* @param {XMLList} extraHelp Extra help text beyond the description. * @param {XMLList} extraHelp Extra help text beyond the description.
* @returns {string} * @returns {string}
*/ */
generateHelp: function generateHelp(obj, extraHelp) generateHelp: function generateHelp(obj, extraHelp) {
{
default xml namespace = ""; default xml namespace = "";
let spec = util.identity; let spec = util.identity;
let tag = util.identity; let tag = util.identity;
@@ -1461,8 +1460,8 @@ const Dactyl = Module("dactyl", {
services.get("extensionManager").uninstallItem(this.id); services.get("extensionManager").uninstallItem(this.id);
}; };
addon.appDisabled = false; addon.appDisabled = false;
addon.__defineGetter__("userDisabled", function() getRdfProperty("userDisabled") == "true"); addon.__defineGetter__("userDisabled", function () getRdfProperty("userDisabled") == "true");
addon.__defineSetter__("userDisabled", function(val) { addon.__defineSetter__("userDisabled", function (val) {
services.get("extensionManager")[val ? "enableItem" : "disableItem"](this.id); services.get("extensionManager")[val ? "enableItem" : "disableItem"](this.id);
}); });

View File

@@ -344,7 +344,7 @@ const RangeFind = Class("RangeFind", {
} }
}, },
focus: function() { focus: function () {
if (this.lastRange) if (this.lastRange)
var node = util.evaluateXPath(RangeFind.selectNodePath, this.range.document, var node = util.evaluateXPath(RangeFind.selectNodePath, this.range.document,
this.lastRange.commonAncestorContainer).snapshotItem(0); this.lastRange.commonAncestorContainer).snapshotItem(0);

View File

@@ -316,7 +316,7 @@ const JavaScript = Module("javascript", {
if (!compl) { if (!compl) {
compl = function (context, obj, recurse) { compl = function (context, obj, recurse) {
context.process[1] = function highlight(item, v) context.process[1] = function highlight(item, v)
template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true); template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true);
// Sort in a logical fashion for object keys: // Sort in a logical fashion for object keys:

View File

@@ -75,8 +75,8 @@ Module.constructors = {};
window.addEventListener("load", function onLoad() { window.addEventListener("load", function onLoad() {
window.removeEventListener("load", onLoad, false); window.removeEventListener("load", onLoad, false);
Module.list.forEach(function(module) { Module.list.forEach(function (module) {
modules.__defineGetter__(module.classname, function() { modules.__defineGetter__(module.classname, function () {
delete modules[module.classname]; delete modules[module.classname];
return load(module.classname, null, Components.stack.caller); return load(module.classname, null, Components.stack.caller);
}); });

View File

@@ -315,7 +315,7 @@ const Tabs = Module("tabs", {
config.tabbrowser.mTabContainer.selectedItem = tabs[next]; config.tabbrowser.mTabContainer.selectedItem = tabs[next];
if (focusLeftTab) if (focusLeftTab)
tabs.slice(Math.max(0, index+1 - count), index+1).forEach(config.removeTab); tabs.slice(Math.max(0, index + 1 - count), index + 1).forEach(config.removeTab);
else else
tabs.slice(index, index + count).forEach(config.removeTab); tabs.slice(index, index + count).forEach(config.removeTab);
}, },

View File

@@ -15,7 +15,7 @@
&dactyl.appname; overrides nearly all &dactyl.host; keys in order to &dactyl.appname; overrides nearly all &dactyl.host; keys in order to
make browsing more pleasant for Vim users. On the occasions when you make browsing more pleasant for Vim users. On the occasions when you
want to bypass &dactyl.appname;'s key handling and pass keys directly to want to bypass &dactyl.appname;'s key handling and pass keys directly to
&dactyl.host; or to a web page, you have two options: &dactyl.host; or to a web page, you have two options:
<item> <item>

View File

@@ -215,7 +215,7 @@ XML.prettyPrinting = <hl key="Boolean">false</hl>;
otherwise. Beginning your file with <str>use strict</str>, while otherwise. Beginning your file with <str>use strict</str>, while
not required, helps to prevent a lot of common errors. not required, helps to prevent a lot of common errors.
</p> </p>
<p> <p>
The documentation that you provide behaves exactly as other The documentation that you provide behaves exactly as other
&dactyl.appname; documentation, which means that the tags you &dactyl.appname; documentation, which means that the tags you

View File

@@ -126,7 +126,7 @@
<k>;V</k>, <k>;Y</k> and <k>;c</k>. The value of <k>;V</k>, <k>;Y</k> and <k>;c</k>. The value of
<o>extendedhinttags</o> is used to choose the elements <o>extendedhinttags</o> is used to choose the elements
for, <k>;s</k>, <k>;a</k>, <k>;o</k>, <k>;t</k>, for, <k>;s</k>, <k>;a</k>, <k>;o</k>, <k>;t</k>,
<k>;b</k>, <k>;O</k>, <k>;T</k>, <k>;W</k>, <k>;y</k>, <k>;b</k>, <k>;O</k>, <k>;T</k>, <k>;W</k>, <k>;y</k>,
</p> </p>
</description> </description>
</item> </item>

View File

@@ -1387,7 +1387,7 @@
<default></default> <default></default>
<description> <description>
<p> <p>
List of file patterns to ignore when completing files. For example, List of file patterns to ignore when completing files. For example,
the following will ignore object files and Vim swap files: the following will ignore object files and Vim swap files:
</p> </p>

View File

@@ -123,7 +123,7 @@
else is interpreted as Ex commands. In normal cases, any errors else is interpreted as Ex commands. In normal cases, any errors
generated by the execution or non-existence of <a>file</a> are generated by the execution or non-existence of <a>file</a> are
printed to the <t>command-line</t> area. When <oa>!</oa> is printed to the <t>command-line</t> area. When <oa>!</oa> is
provided, these are suppressed. provided, these are suppressed.
</p> </p>
<p> <p>
@@ -140,7 +140,7 @@
page and every chrome document, including all browser windows and page and every chrome document, including all browser windows and
dialogs. If the same file is sourced more than once, its previous dialogs. If the same file is sourced more than once, its previous
rules are cleared before it is applied again. Rules can be rules are cleared before it is applied again. Rules can be
restricted to specific documents by enclosing them restricted to specific documents by enclosing them
<link topic="https://developer.mozilla.org/en/CSS/@-moz-document">@-moz-document</link> <link topic="https://developer.mozilla.org/en/CSS/@-moz-document">@-moz-document</link>
blocks. blocks.
</p> </p>

View File

@@ -71,7 +71,7 @@ Sheet.prototype.__defineGetter__("fullCSS", function wrapCSS() {
* @author Kris Maglione <maglione.k@gmail.com> * @author Kris Maglione <maglione.k@gmail.com>
*/ */
const Styles = Module("Styles", { const Styles = Module("Styles", {
init: function() { init: function () {
this._id = 0; this._id = 0;
this.userSheets = []; this.userSheets = [];
this.systemSheets = []; this.systemSheets = [];

View File

@@ -16,7 +16,7 @@
<p> <p>
<link topic="&dactyl.apphome;">&dactyl.appname;</link> is a <link topic="&dactyl.apphome;">&dactyl.appname;</link> is a
free browser add-on for &dactyl.host;, designed to make browsing more free browser add-on for &dactyl.host;, designed to make browsing more
efficient and especially more keyboard accessible. Largely inspired by the efficient and especially more keyboard accessible. Largely inspired by the
<link topic="http://www.vim.org">Vim</link> text editor, the appearance <link topic="http://www.vim.org">Vim</link> text editor, the appearance
and finger feel should be familiar to Vim users. and finger feel should be familiar to Vim users.
</p> </p>

View File

@@ -107,7 +107,7 @@ const Mail = Module("mail", {
let i = direction; let i = direction;
let folder; let folder;
while (count > 0 && (c + i) < gFolderTreeView.rowCount && (c + i) >= 0) { while (count > 0 && (c + i) < gFolderTreeView.rowCount && (c + i) >= 0) {
let resource = gFolderTreeView._rowMap[c+i]._folder; let resource = gFolderTreeView._rowMap[c + i]._folder;
if (!resource.isServer && resource.getNumUnread(false)) { if (!resource.isServer && resource.getNumUnread(false)) {
count -= 1; count -= 1;
folder = i; folder = i;

View File

@@ -17,7 +17,7 @@
is a free media player add-on for &dactyl.host;, which is a free media player add-on for &dactyl.host;, which
combines the best features of the combines the best features of the
<link topic="http://cmus.sourceforge.net">CMus</link> <link topic="http://cmus.sourceforge.net">CMus</link>
music player and the music player and the
<link topic="http://www.vim.org">Vim</link> <link topic="http://www.vim.org">Vim</link>
text editor. text editor.