Don't update ensureElementIsVisible() twice

This commit is contained in:
YUKI Hiroshi 2015-03-17 17:52:08 +09:00
parent ec76dd9c04
commit f639cf2145

View File

@ -554,6 +554,7 @@ var TreeStyleTabWindowHelper = {
*/
{
let scrollbox = aTabBrowser.treeStyleTab.scrollBox;
if (!scrollbox.__treestyletab__ensureElementIsVisible) {
scrollbox.__treestyletab__ensureElementIsVisible = scrollbox.ensureElementIsVisible;
scrollbox.ensureElementIsVisible = function(...aArgs) {
var treeStyleTab = TreeStyleTabService.getTabBrowserFromChild(this).treeStyleTab;
@ -569,6 +570,7 @@ var TreeStyleTabWindowHelper = {
this.__treestyletab__ensureElementIsVisible.apply(this, aArgs);
};
}
}
{
let popup = document.getElementById('alltabs-popup');