タブの折り畳み状態の変化に応じてTreeStyleTabCollapsedStateChangeイベントを

発行するようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3906 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-03-25 13:26:41 +00:00
parent 5aa020020c
commit 742d722d9e

View File

@ -2889,6 +2889,11 @@ TreeStyleTabBrowser.prototype = {
this.setTabValue(aTab, this.kCOLLAPSED, aCollapse);
var event = document.createEvent('Events');
event.initEvent('TreeStyleTabCollapsedStateChange', true, true);
event.collapsed = aCollapse;
aTab.dispatchEvent(event);
var b = this.mTabBrowser;
var parent;
if (aCollapse && aTab == b.selectedTab && (parent = this.getParentTab(aTab))) {