From d75c9af0073f27a4094a6d37438de11bed59a791 Mon Sep 17 00:00:00 2001 From: piro Date: Sat, 26 Dec 2009 05:38:38 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=AD=E3=83=A3=E3=83=B3=E3=82=BB=E3=83=AB?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E3=81=AE=E3=81=AA=E3=81=84=E3=82=A4=E3=83=99?= =?UTF-8?q?=E3=83=B3=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5662 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 83556392..1da065db 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1019,8 +1019,8 @@ catch(e) { /* PUBLIC API */ var b = this.browser; - var event = b.ownerDocument.createEvent('UIEvents'); - event.initEvent('TreeStyleTabFocusSwitchingKeyDown', true, false, b.ownerDocument.defaultView, aEvent.keyCode); + var event = b.ownerDocument.createEvent('Events'); + event.initEvent('TreeStyleTabFocusSwitchingKeyDown', true, false); event.sourceEvent = aEvent; b.dispatchEvent(event); }, @@ -1061,8 +1061,8 @@ catch(e) { ) ) { /* PUBLIC API */ - let event = b.ownerDocument.createEvent('UIEvents'); - event.initEvent('TreeStyleTabFocusSwitchingStart', true, false, b.ownerDocument.defaultView, aEvent.keyCode); + let event = b.ownerDocument.createEvent('Events'); + event.initEvent('TreeStyleTabFocusSwitchingStart', true, false); event.scrollDown = scrollDown; event.scrollUp = scrollUp; event.standBy = standBy; @@ -1076,8 +1076,8 @@ catch(e) { /* PUBLIC API */ let (event) { - event = document.createEvent('UIEvents'); - event.initEvent('TreeStyleTabFocusSwitchingEnd', true, false, b.ownerDocument.defaultView, aEvent.keyCode); + event = document.createEvent('Events'); + event.initEvent('TreeStyleTabFocusSwitchingEnd', true, false); event.scrollDown = scrollDown; event.scrollUp = scrollUp; event.standBy = standBy; @@ -1331,8 +1331,8 @@ catch(e) { { aClosedTabs = aClosedTabs.filter(function(aTab) { return !aTab.parentNode; }); /* PUBLIC API */ - var event = aTabBrowser.ownerDocument.createEvent('UIEvents'); - event.initEvent('TreeStyleTabSubtreeClosed', true, false, aTabBrowser.ownerDocument.defaultView, aClosedTabs.length); + var event = aTabBrowser.ownerDocument.createEvent('Events'); + event.initEvent('TreeStyleTabSubtreeClosed', true, false); event.parent = aParentTab; event.tabs = aClosedTabs; aTabBrowser.dispatchEvent(event);