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

Use Object.keys/getOwnPropertyNames (and provide them if they don't exist).

This commit is contained in:
Kris Maglione
2010-08-28 18:57:59 -04:00
parent 4e40abe6b0
commit f1ca59a83d
5 changed files with 45 additions and 75 deletions

View File

@@ -158,7 +158,7 @@ const Modes = Module("modes", {
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)))],
matchModes: function (obj) [m for (m in values(this._modeMap)) if (Object.keys(obj).every(function (k) obj[k] == (m[k] || false)))],
// show the current mode string in the command line
show: function () {