[Pkg-mozext-commits] [tabmixplus] 60/123: When all tabs are pinned _getScrollableElements return empty array and tabs[0] is undefined
David Prévot
taffit at moszumanska.debian.org
Wed Sep 17 21:16:27 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 1143636bf2ade6fc642b473d1314b25857f797c6
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Sep 1 10:30:28 2014 +0300
When all tabs are pinned _getScrollableElements return empty array and tabs[0] is undefined
---
chrome/content/tab/scrollbox.xml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/chrome/content/tab/scrollbox.xml b/chrome/content/tab/scrollbox.xml
index 1c1f940..a9968e6 100644
--- a/chrome/content/tab/scrollbox.xml
+++ b/chrome/content/tab/scrollbox.xml
@@ -363,6 +363,8 @@
var tabBar = document.getBindingParent(this);
tabBar.adjustNewtabButtonvisibility();
let tabs = this._getScrollableElements();
+ if (!tabs.length)
+ return;
let isFirstTabVisible = this.isElementVisible(tabs[0]);
let isLastTabVisible = this.isElementVisible(tabs[tabs.length-1]);
if (!isFirstTabVisible || !isLastTabVisible) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list