From 2fbd7c93cc2234c0821a5cc96e98d30aef3a091d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Sat, 16 Oct 2010 21:51:29 +0200 Subject: [PATCH] Fix tabs.remove for count === undefined. --- common/content/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/tabs.js b/common/content/tabs.js index b7010bc5..ec843f25 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -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)