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

Remove some unused self var declarations.

This commit is contained in:
Doug Kearns
2010-11-12 22:59:39 +11:00
parent 5faa13c996
commit edbce58a59
6 changed files with 0 additions and 8 deletions

View File

@@ -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 = {};

View File

@@ -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",

View File

@@ -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)

View File

@@ -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);

View File

@@ -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 = "";

View File

@@ -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.