mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:22:28 +01:00
Fix modes.pop().
This commit is contained in:
@@ -244,11 +244,13 @@ liberator.modes = (function () //{{{
|
|||||||
this.set(mainMode, extendedMode, silent);
|
this.set(mainMode, extendedMode, silent);
|
||||||
},
|
},
|
||||||
|
|
||||||
pop: function ()
|
pop: function (silent)
|
||||||
{
|
{
|
||||||
var a = modeStack.pop();
|
var a = modeStack.pop();
|
||||||
if (a)
|
if (a)
|
||||||
[main, extended] = a;
|
this.set(a[0], a[1], silent);
|
||||||
|
else
|
||||||
|
this.reset(silent);
|
||||||
},
|
},
|
||||||
|
|
||||||
setCustomMode: function (modestr, oneventfunc, stopfunc)
|
setCustomMode: function (modestr, oneventfunc, stopfunc)
|
||||||
|
|||||||
Reference in New Issue
Block a user