1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 23:35:44 +01:00

Fix a silly error in modes.set.

This commit is contained in:
Kris Maglione
2011-02-23 16:41:26 -05:00
parent 2c109025bf
commit 80ca9194ec
4 changed files with 25 additions and 13 deletions

View File

@@ -310,14 +310,14 @@ var Modes = Module("modes", {
return;
}
params = params || this.getMode(mainMode || this.main).params;
if (!stack && mainMode != null && this._modeStack.length > 1)
this.reset();
this.withSavedValues(["inSet"], function set() {
this.inSet = true;
params = params || this.getMode(mainMode || this.main).params;
if (!stack && mainMode != null && this._modeStack.length > 1)
this.reset();
oldMain = this._main, oldExtended = this._extended;
if (extendedMode != null)