1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:27:58 +01:00

Fix modes.pop().

This commit is contained in:
Kris Maglione
2008-09-15 22:23:33 +00:00
parent 19f30ff92f
commit 4d7105f2bc

View File

@@ -244,11 +244,13 @@ liberator.modes = (function () //{{{
this.set(mainMode, extendedMode, silent);
},
pop: function ()
pop: function (silent)
{
var a = modeStack.pop();
if (a)
[main, extended] = a;
this.set(a[0], a[1], silent);
else
this.reset(silent);
},
setCustomMode: function (modestr, oneventfunc, stopfunc)