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 // Tab Mix Plus
if (this.getTreePref('compatibility.TMP') && if (this.getTreePref('compatibility.TMP') &&
'TMupdateSettings' in window) { 'TMupdateSettings' in window) {
eval('window.TMupdateSettings = '+ if (window.TMupdateSettings.toSource().indexOf('treeStyleTab') < 0) {
window.TMupdateSettings.toSource().replace( eval('window.TMupdateSettings = '+
/(\{aTab.removeAttribute\("tabxleft"\);\})(\})/, window.TMupdateSettings.toSource().replace(
<![CDATA[$1 /(\{aTab.removeAttribute\("tabxleft"\);\})(\})/,
gBrowser.treeStyleTab.initTabAttributes(aTab); <![CDATA[$1
gBrowser.treeStyleTab.initTabContentsOrder(aTab); gBrowser.treeStyleTab.initTabAttributes(aTab);
$2]]> gBrowser.treeStyleTab.initTabContentsOrder(aTab);
) $2]]>
); )
);
}
eval('window.TMP_contentAreaClick = '+ eval('window.TMP_contentAreaClick = '+
window.TMP_contentAreaClick.toSource().replace( window.TMP_contentAreaClick.toSource().replace(