1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-20 22:55:46 +01:00

Get rid of absurd strict JS warnings.

This commit is contained in:
Kris Maglione
2009-11-14 04:38:36 -05:00
parent dcedb36e9b
commit 91fd0e1169
29 changed files with 292 additions and 285 deletions

View File

@@ -21,7 +21,7 @@ const Modes = Module("modes", {
this._modeStack = [];
this._mainModes = [self.NONE];
this._mainModes = [this.NONE];
this._lastMode = 0;
this._modeMap = {};
@@ -153,6 +153,10 @@ const Modes = Module("modes", {
getMode: function (name) this._modeMap[name],
getCharModes: function (chr) [m for (m in values(this._modeMap)) if (m.char == chr)],
matchModes: function (obj) [m for (m in values(this._modeMap)) if (array(keys(obj)).every(function (k) obj[k] == (m[k] || false)))],
// show the current mode string in the command line
show: function () {
let msg = "";