mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 15:54:11 +01:00
Fix Firefox freakout. Closes issue #463.
This commit is contained in:
@@ -411,15 +411,15 @@ var Modes = Module("modes", {
|
||||
prev = stack && stack.pop || this.topOfStack;
|
||||
if (push)
|
||||
this._modeStack.push(push);
|
||||
|
||||
if (stack && stack.pop)
|
||||
for (let { obj, prop, value, test } in values(this.topOfStack.saved))
|
||||
if (!test || !test(stack, prev))
|
||||
dactyl.trapErrors(function () { obj[prop] = value });
|
||||
|
||||
this.show();
|
||||
});
|
||||
|
||||
if (stack && stack.pop)
|
||||
for (let { obj, prop, value, test } in values(this.topOfStack.saved))
|
||||
if (!test || !test(stack, prev))
|
||||
dactyl.trapErrors(function () { obj[prop] = value });
|
||||
|
||||
this.show();
|
||||
|
||||
if (this.topOfStack.params.enter && prev)
|
||||
dactyl.trapErrors("enter", this.topOfStack.params,
|
||||
push ? { push: push } : stack || {},
|
||||
|
||||
Reference in New Issue
Block a user