タブの折り畳み状態の変化に応じてTreeStyleTabCollapsedStateChangeイベントを
発行するようにした git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3906 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
5aa020020c
commit
742d722d9e
@ -2889,6 +2889,11 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
this.setTabValue(aTab, this.kCOLLAPSED, aCollapse);
|
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 b = this.mTabBrowser;
|
||||||
var parent;
|
var parent;
|
||||||
if (aCollapse && aTab == b.selectedTab && (parent = this.getParentTab(aTab))) {
|
if (aCollapse && aTab == b.selectedTab && (parent = this.getParentTab(aTab))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user