Minefield 4.0b2preで起動できなくなる問題を解消
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6796 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
1c091bed08
commit
6615c628f9
@ -30,7 +30,7 @@ TreeStyleTabService._preLoadImages = {
|
||||
'chrome://treestyletab/skin/metal/shadow-active-l.png',
|
||||
'chrome://treestyletab/skin/metal/shadow-inactive-l.png'
|
||||
].concat(
|
||||
'MozBorderImage' in document.documentElement.style ?
|
||||
TreeStyleTabService.Comparator.compare(TreeStyleTabService.XULAppInfo.version, '3.5') >= 0 ?
|
||||
[
|
||||
'chrome://treestyletab/skin/metal/tab-active-middle.png',
|
||||
'chrome://treestyletab/skin/metal/tab-active-middle-selected.png',
|
||||
@ -47,7 +47,7 @@ TreeStyleTabService._preLoadImages = {
|
||||
'chrome://treestyletab/skin/metal/shadow-active-r.png',
|
||||
'chrome://treestyletab/skin/metal/shadow-inactive-r.png'
|
||||
].concat(
|
||||
'MozBorderImage' in document.documentElement.style ?
|
||||
TreeStyleTabService.Comparator.compare(TreeStyleTabService.XULAppInfo.version, '3.5') >= 0 ?
|
||||
[
|
||||
'chrome://treestyletab/skin/metal/tab-active-middle.png',
|
||||
'chrome://treestyletab/skin/metal/tab-active-middle-selected.png',
|
||||
|
@ -9,8 +9,11 @@ var TreeStyleTabService = {
|
||||
|
||||
get currentTabbarPosition() /* PUBLIC API */
|
||||
{
|
||||
return this.browser.getAttribute(this.kTABBAR_POSITION) ||
|
||||
this.utils.currentTabbarPosition;
|
||||
return (
|
||||
// Don't touch to the <tabbrowser/> element before it is initialized by XBL constructor.
|
||||
(this.preInitialized && this.browser.getAttribute(this.kTABBAR_POSITION)) ||
|
||||
this.utils.currentTabbarPosition
|
||||
);
|
||||
},
|
||||
set currentTabbarPosition(aValue)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user