[Pkg-mozext-commits] [tabmixplus] 24/51: Make sure our tabContainer functions exist when calling function not in multi-row mode
David Prévot
taffit at moszumanska.debian.org
Mon Feb 2 18:36:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit c3ac3ae34db2b50b0f1333607455780ff3093459
Author: onemen <tabmix.onemen at gmail.com>
Date: Sat Jan 3 18:43:48 2015 +0200
Make sure our tabContainer functions exist when calling function not in multi-row mode
---
chrome/content/minit/tablib.js | 3 ++-
chrome/content/tab/tab.js | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index a3b0714..6fadcd9 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -308,7 +308,8 @@ var tablib = {
if (!Tabmix.extensions.verticalTabs) {
Tabmix.changeCode(tabBar, "gBrowser.tabContainer._positionPinnedTabs")._replace(
'this.removeAttribute("positionpinnedtabs");',
- 'this.mTabstrip.resetFirstTabInRow();\
+ 'if (typeof this.mTabstrip.resetFirstTabInRow == "function")\
+ this.mTabstrip.resetFirstTabInRow();\
$&'
)._replace(
/this.mTabstrip._scrollButtonDown.(scrollWidth|getBoundingClientRect\(\).width)/,
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index b7a2e23..2683149 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -881,7 +881,8 @@ Tabmix.tabsUtils = {
else
this.tabBar.removeAttribute("overflow");
this.showNewTabButtonOnSide(val, "right-side");
- this.tabBar.mTabstrip.updateOverflow(val);
+ if (typeof this.tabBar.mTabstrip.updateOverflow == "function")
+ this.tabBar.mTabstrip.updateOverflow(val);
}
return val;
},
--
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