Tab Utilities ( https://addons.mozilla.org/firefox/addon/59961/ )によってcontentAreaClickにopenNewTabWithが挿入されている場合に、それによって開かれたタブが子タブにならない問題に対処

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7264 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-09-18 15:42:11 +00:00
parent 0f0214d8eb
commit d5193671e5

View File

@ -1113,6 +1113,13 @@ catch(e) {
return true; return true;
} }
]]> ]]>
).replace(
// for Tab Utilities, etc. Some addons insert openNewTabWith() to the function.
// (calls for the function is not included by Firefox default.)
/(openNewTabWith\()/g,
<![CDATA[
if (!TreeStyleTabService.checkToOpenChildTab(event.target.ownerDocument.defaultView)) TreeStyleTabService.readyToOpenChildTab(event.target.ownerDocument.defaultView);
$1]]>
)); ));
source = null; source = null;
}, this); }, this);