we should do smooth scroll if the second argument is not given

This commit is contained in:
SHIMODA Hiroshi 2011-04-06 20:32:12 +09:00
parent 63106f2a7f
commit 45d712c23f

View File

@ -1222,7 +1222,10 @@ TreeStyleTabBrowser.prototype = {
'{',
<![CDATA[{
var treeStyleTab = TreeStyleTabService.getTabBrowserFromChild(this).treeStyleTab;
if (treeStyleTab && arguments[1])
if (
treeStyleTab &&
(arguments.length == 1 || arguments[1])
)
return treeStyleTab.scrollToTab(arguments[0]);
]]>.toString()
)