"event." is required

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-12-10 02:36:08 +09:00
parent 3e4cbe02c7
commit 80b64709c7
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ function onItemClick(aEvent)
if (isMiddleClick)
gBrowser.removeTab(tab);
else if (button != 2)
else if (event.button != 2)
gBrowser.selectedTab = tab;
}

View File

@ -178,7 +178,7 @@ FullTooltipManager.prototype = {
if (isMiddleClick)
this.owner.browser.removeTab(tab);
else if (button != 2)
else if (event.button != 2)
this.owner.browser.selectedTab = tab;
}
}