1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-11 23:45:45 +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.
* @returns {string}
*/
generateHelp: function generateHelp(obj, extraHelp)
{
generateHelp: function generateHelp(obj, extraHelp) {
default xml namespace = "";
let spec = util.identity;
let tag = util.identity;
@@ -1461,8 +1460,8 @@ const Dactyl = Module("dactyl", {
services.get("extensionManager").uninstallItem(this.id);
};
addon.appDisabled = false;
addon.__defineGetter__("userDisabled", function() getRdfProperty("userDisabled") == "true");
addon.__defineSetter__("userDisabled", function(val) {
addon.__defineGetter__("userDisabled", function () getRdfProperty("userDisabled") == "true");
addon.__defineSetter__("userDisabled", function (val) {
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)
var node = util.evaluateXPath(RangeFind.selectNodePath, this.range.document,
this.lastRange.commonAncestorContainer).snapshotItem(0);

View File

@@ -316,7 +316,7 @@ const JavaScript = Module("javascript", {
if (!compl) {
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);
// Sort in a logical fashion for object keys:

View File

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

View File

@@ -315,7 +315,7 @@ const Tabs = Module("tabs", {
config.tabbrowser.mTabContainer.selectedItem = tabs[next];
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
tabs.slice(index, index + count).forEach(config.removeTab);
},