mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:48:00 +01:00
Whitespace fixes.
--HG-- extra : rebase_source : 8668ae131079523322e32f068e1b48bea64b4f72
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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 = [];
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user