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

Fix tabs.remove for count === undefined.

This commit is contained in:
Štěpán Němec
2010-10-16 21:51:29 +02:00
parent 5ba4b84563
commit 2fbd7c93cc

View File

@@ -300,7 +300,7 @@ const Tabs = Module("tabs", {
*/
// FIXME: what is quitOnLastTab {1,2} all about then, eh? --djk
remove: function (tab, count, focusLeftTab, quitOnLastTab) {
count = Math.max(count, 1);
count = count || 1;
if (quitOnLastTab >= 1 && this.count <= count) {
if (dactyl.windows.length > 1)