1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 04:54:10 +01:00

Fix :js context on Minefield.

This commit is contained in:
Kris Maglione
2011-09-17 00:08:02 -04:00
parent 423767238b
commit 057600d780
7 changed files with 66 additions and 20 deletions

View File

@@ -307,6 +307,17 @@ var Modes = Module("modes", {
dactyl.triggerObserver("modes.add", mode);
},
removeMode: function removeMode(mode) {
if (this[mode.name] == mode)
delete this[mode.name];
if (this._modeMap[mode.name] == mode)
delete this._modeMap[mode.name];
if (this._modeMap[mode.mode] == mode)
delete this._modeMap[mode.mode];
this._mainModes = this._mainModes.filter(function (m) m != mode);
},
dumpStack: function dumpStack() {
util.dump("Mode stack:");
for (let [i, mode] in array.iterItems(this._modeStack))