キャンセルできないイベント

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5645 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-26 03:55:02 +00:00
parent 52b959c954
commit ebdea3391b
3 changed files with 10 additions and 10 deletions

View File

@ -1019,7 +1019,7 @@ catch(e) {
/* PUBLIC API */ /* PUBLIC API */
let event = document.createEvent('Events'); let event = document.createEvent('Events');
event.initEvent('TreeStyleTabFocusSwitchingKeyDown', true, true); event.initEvent('TreeStyleTabFocusSwitchingKeyDown', true, false);
event.sourceEvent = aEvent; event.sourceEvent = aEvent;
this.browser.dispatchEvent(event); this.browser.dispatchEvent(event);
}, },
@ -1061,7 +1061,7 @@ catch(e) {
) { ) {
/* PUBLIC API */ /* PUBLIC API */
let event = document.createEvent('Events'); let event = document.createEvent('Events');
event.initEvent('TreeStyleTabFocusSwitchingStart', true, true); event.initEvent('TreeStyleTabFocusSwitchingStart', true, false);
event.scrollDown = scrollDown; event.scrollDown = scrollDown;
event.scrollUp = scrollUp; event.scrollUp = scrollUp;
event.standBy = standBy; event.standBy = standBy;
@ -1076,7 +1076,7 @@ catch(e) {
/* PUBLIC API */ /* PUBLIC API */
let (event) { let (event) {
event = document.createEvent('Events'); event = document.createEvent('Events');
event.initEvent('TreeStyleTabFocusSwitchingEnd', true, true); event.initEvent('TreeStyleTabFocusSwitchingEnd', true, false);
event.scrollDown = scrollDown; event.scrollDown = scrollDown;
event.scrollUp = scrollUp; event.scrollUp = scrollUp;
event.standBy = standBy; event.standBy = standBy;

View File

@ -1072,7 +1072,7 @@ TreeStyleTabBrowser.prototype = {
if (aOldPosition == aNewPosition) return; if (aOldPosition == aNewPosition) return;
var event = document.createEvent('Events'); var event = document.createEvent('Events');
event.initEvent(aType, true, true); event.initEvent(aType, true, false);
event.oldPosition = aOldPosition; event.oldPosition = aOldPosition;
event.newPosition = aNewPosition; event.newPosition = aNewPosition;
this.mTabBrowser.dispatchEvent(event); this.mTabBrowser.dispatchEvent(event);
@ -3076,7 +3076,7 @@ TreeStyleTabBrowser.prototype = {
) { ) {
/* PUBLIC API */ /* PUBLIC API */
let event = document.createEvent('Events'); let event = document.createEvent('Events');
event.initEvent('TreeStyleTabAttached', true, true); event.initEvent('TreeStyleTabAttached', true, false);
event.parentTab = aParent; event.parentTab = aParent;
aChild.dispatchEvent(event); aChild.dispatchEvent(event);
return; return;
@ -3182,7 +3182,7 @@ TreeStyleTabBrowser.prototype = {
/* PUBLIC API */ /* PUBLIC API */
var event = document.createEvent('Events'); var event = document.createEvent('Events');
event.initEvent('TreeStyleTabAttached', true, true); event.initEvent('TreeStyleTabAttached', true, false);
event.parentTab = aParent; event.parentTab = aParent;
aChild.dispatchEvent(event); aChild.dispatchEvent(event);
}, },
@ -3223,7 +3223,7 @@ TreeStyleTabBrowser.prototype = {
/* PUBLIC API */ /* PUBLIC API */
var event = document.createEvent('Events'); var event = document.createEvent('Events');
event.initEvent('TreeStyleTabParted', true, true); event.initEvent('TreeStyleTabParted', true, false);
aChild.dispatchEvent(event); aChild.dispatchEvent(event);
if (this.isGroupTab(parentTab) && !this.hasChildTabs(parentTab)) { if (this.isGroupTab(parentTab) && !this.hasChildTabs(parentTab)) {
@ -3567,7 +3567,7 @@ TreeStyleTabBrowser.prototype = {
/* PUBLIC API */ /* PUBLIC API */
var event = document.createEvent('Events'); var event = document.createEvent('Events');
event.initEvent('TreeStyleTabCollapsedStateChange', true, true); event.initEvent('TreeStyleTabCollapsedStateChange', true, false);
event.collapsed = aCollapse; event.collapsed = aCollapse;
aTab.dispatchEvent(event); aTab.dispatchEvent(event);

View File

@ -517,7 +517,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
{ {
/* PUBLIC API */ /* PUBLIC API */
var event = document.createEvent('Events'); var event = document.createEvent('Events');
event.initEvent('TreeStyleTabAutoHideStateChanging', true, true); event.initEvent('TreeStyleTabAutoHideStateChanging', true, false);
event.shown = this.expanded; event.shown = this.expanded;
event.state = this.state; event.state = this.state;
this.mOwner.mTabBrowser.dispatchEvent(event); this.mOwner.mTabBrowser.dispatchEvent(event);
@ -527,7 +527,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
{ {
/* PUBLIC API */ /* PUBLIC API */
var event = document.createEvent('Events'); var event = document.createEvent('Events');
event.initEvent('TreeStyleTabAutoHideStateChange', true, true); event.initEvent('TreeStyleTabAutoHideStateChange', true, false);
event.shown = this.expanded; event.shown = this.expanded;
event.state = this.state; event.state = this.state;
event.xOffset = this.XOffset; event.xOffset = this.XOffset;