mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 08:07:59 +01:00
Get rid of stale dump statements.
--HG-- branch : key-processing
This commit is contained in:
@@ -273,7 +273,6 @@ var Modes = Module("modes", {
|
|||||||
|
|
||||||
// helper function to set both modes in one go
|
// helper function to set both modes in one go
|
||||||
set: function set(mainMode, extendedMode, params, stack) {
|
set: function set(mainMode, extendedMode, params, stack) {
|
||||||
util.dumpStack(" ========== " + mainMode.toString());
|
|
||||||
params = params || this.getMode(mainMode || this.main).params;
|
params = params || this.getMode(mainMode || this.main).params;
|
||||||
|
|
||||||
if (!stack && mainMode != null && this._modeStack.length > 1)
|
if (!stack && mainMode != null && this._modeStack.length > 1)
|
||||||
@@ -317,11 +316,9 @@ var Modes = Module("modes", {
|
|||||||
this._modeStack.push(push);
|
this._modeStack.push(push);
|
||||||
|
|
||||||
if (stack && stack.pop)
|
if (stack && stack.pop)
|
||||||
for (let { obj, prop, value, test } in values(this.topOfStack.saved)) {
|
for (let { obj, prop, value, test } in values(this.topOfStack.saved))
|
||||||
util.dump("pop " + obj + " " + prop + " " + !!test + " " + (test && test(stack, prev)));
|
|
||||||
if (!test || !test(stack, prev))
|
if (!test || !test(stack, prev))
|
||||||
obj[prop] = value;
|
obj[prop] = value;
|
||||||
}
|
|
||||||
|
|
||||||
this.show();
|
this.show();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user