3.7a2preで初期化に失敗するようになっていたのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6325 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
afeea791c9
commit
01f2263321
@ -389,8 +389,38 @@ TreeStyleTabBrowser.prototype = {
|
||||
)
|
||||
);
|
||||
|
||||
if ('' in b) { // Firefox 3.7-
|
||||
eval('b._handleKeyEvent = '+
|
||||
b._handleKeyEvent.toSource().replace(
|
||||
'this.moveTabOver(aEvent);',
|
||||
<![CDATA[
|
||||
if (!this.treeStyleTab.isVertical ||
|
||||
!this.treeStyleTab.moveTabLevel(aEvent)) {
|
||||
$&
|
||||
}
|
||||
]]>
|
||||
).replace(
|
||||
'this.moveTabForward();',
|
||||
<![CDATA[
|
||||
if (this.treeStyleTab.isVertical ||
|
||||
!this.treeStyleTab.moveTabLevel(aEvent)) {
|
||||
$&
|
||||
}
|
||||
]]>
|
||||
).replace(
|
||||
'this.moveTabBackward();',
|
||||
<![CDATA[
|
||||
if (this.treeStyleTab.isVertical ||
|
||||
!this.treeStyleTab.moveTabLevel(aEvent)) {
|
||||
$&
|
||||
}
|
||||
]]>
|
||||
)
|
||||
);
|
||||
}
|
||||
else if ('_keyEventHandler' in b) { // -Firefox 3.6
|
||||
eval('b._keyEventHandler.handleEvent = '+
|
||||
b._keyEventHandler.handleEvent.toSource().replace(
|
||||
_keyEventHandler.handleEvent.toSource().replace(
|
||||
'this.tabbrowser.moveTabOver(aEvent);',
|
||||
<![CDATA[
|
||||
if (!this.tabbrowser.treeStyleTab.isVertical ||
|
||||
@ -416,6 +446,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
]]>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
eval('b.loadTabs = '+
|
||||
b.loadTabs.toSource().replace(
|
||||
|
Loading…
x
Reference in New Issue
Block a user