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