TMupdateSettingsの上書き用コードを、不要な時は走らないように

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6643 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-05-02 01:44:30 +00:00
parent 0e3f927a2c
commit 6f71c5ab94

View File

@ -330,15 +330,17 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function TSTService_override
// Tab Mix Plus
if (this.getTreePref('compatibility.TMP') &&
'TMupdateSettings' in window) {
eval('window.TMupdateSettings = '+
window.TMupdateSettings.toSource().replace(
/(\{aTab.removeAttribute\("tabxleft"\);\})(\})/,
<![CDATA[$1
gBrowser.treeStyleTab.initTabAttributes(aTab);
gBrowser.treeStyleTab.initTabContentsOrder(aTab);
$2]]>
)
);
if (window.TMupdateSettings.toSource().indexOf('treeStyleTab') < 0) {
eval('window.TMupdateSettings = '+
window.TMupdateSettings.toSource().replace(
/(\{aTab.removeAttribute\("tabxleft"\);\})(\})/,
<![CDATA[$1
gBrowser.treeStyleTab.initTabAttributes(aTab);
gBrowser.treeStyleTab.initTabContentsOrder(aTab);
$2]]>
)
);
}
eval('window.TMP_contentAreaClick = '+
window.TMP_contentAreaClick.toSource().replace(