1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 15:04:12 +01:00

Ensure that modes.stack[0].reset gets called on modes.reset()

This commit is contained in:
Kris Maglione
2010-10-04 15:16:33 -04:00
parent f407dfd734
commit e61caf8f23

View File

@@ -212,6 +212,8 @@ const Modes = Module("modes", {
},
reset: function () {
if (this._modeStack.length == 1 && this.topOfStack.params.restore)
this.topOfStack.params.restore(this.topOfStack);
while (this._modeStack.length > 1)
this.pop();
},