mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 08:27:59 +01:00
Remove some unused self var declarations.
This commit is contained in:
@@ -85,7 +85,6 @@ ChromeData.prototype = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function Dactyl() {
|
function Dactyl() {
|
||||||
const self = this;
|
|
||||||
this.wrappedJSObject = this;
|
this.wrappedJSObject = this;
|
||||||
|
|
||||||
this.HELP_TAGS = {};
|
this.HELP_TAGS = {};
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
const CommandWidgets = Class("CommandWidgets", {
|
const CommandWidgets = Class("CommandWidgets", {
|
||||||
init: function () {
|
init: function () {
|
||||||
const self = this;
|
|
||||||
this.elements = {};
|
this.elements = {};
|
||||||
this.addElement({
|
this.addElement({
|
||||||
name: "container",
|
name: "container",
|
||||||
|
|||||||
@@ -140,7 +140,6 @@ const Command = Class("Command", {
|
|||||||
(isString(this.deprecated) ? ": " + this.deprecated : ""));
|
(isString(this.deprecated) ? ": " + this.deprecated : ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
let self = this;
|
|
||||||
modifiers = modifiers || {};
|
modifiers = modifiers || {};
|
||||||
|
|
||||||
if (args.count != null && !this.count)
|
if (args.count != null && !this.count)
|
||||||
|
|||||||
@@ -553,7 +553,6 @@ const CompletionContext = Class("CompletionContext", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getItems: function getItems(start, end) {
|
getItems: function getItems(start, end) {
|
||||||
let self = this;
|
|
||||||
let items = this.items;
|
let items = this.items;
|
||||||
let step = start > end ? -1 : 1;
|
let step = start > end ? -1 : 1;
|
||||||
start = Math.max(0, start || 0);
|
start = Math.max(0, start || 0);
|
||||||
|
|||||||
@@ -13,8 +13,6 @@
|
|||||||
*/
|
*/
|
||||||
const Events = Module("events", {
|
const Events = Module("events", {
|
||||||
init: function () {
|
init: function () {
|
||||||
const self = this;
|
|
||||||
|
|
||||||
this._fullscreen = window.fullScreen;
|
this._fullscreen = window.fullScreen;
|
||||||
this._lastFocus = null;
|
this._lastFocus = null;
|
||||||
this._currentMacro = "";
|
this._currentMacro = "";
|
||||||
|
|||||||
@@ -146,8 +146,6 @@ const JavaScript = Module("javascript", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_buildStack: function (filter) {
|
_buildStack: function (filter) {
|
||||||
let self = this;
|
|
||||||
|
|
||||||
// Todo: Fix these one-letter variable names.
|
// Todo: Fix these one-letter variable names.
|
||||||
this._i = 0;
|
this._i = 0;
|
||||||
this._c = ""; // Current index and character, respectively.
|
this._c = ""; // Current index and character, respectively.
|
||||||
|
|||||||
Reference in New Issue
Block a user