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:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user