From cc66a3723fe877c7d0401753cf69aee375ead025 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Mon, 20 Dec 2010 21:04:21 +0900 Subject: [PATCH] event names are changed with "nsDOM" prefix ( update for https://github.com/piroor/multipletab/commit/ca4705f0a3954c1fb85e68269461f9f5ac495953 ) --- content/treestyletab/treestyletabbrowser.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index e699ecab..ad6c14de 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -377,7 +377,7 @@ TreeStyleTabBrowser.prototype = { tabContainer.addEventListener('dblclick', this, true); tabContainer.addEventListener('select', this, true); tabContainer.addEventListener('scroll', this, true); - tabContainer.addEventListener('MultipleTabHandler:TabsDragStart', this, true); + tabContainer.addEventListener('nsDOMMultipleTabHandler:TabsDragStart', this, true); var strip = this.tabStrip; strip.addEventListener('MozMouseHittest', this, true); // to block default behaviors of the tab bar @@ -393,7 +393,7 @@ TreeStyleTabBrowser.prototype = { window.addEventListener(this.kEVENT_TYPE_PRINT_PREVIEW_ENTERED, this, false); window.addEventListener(this.kEVENT_TYPE_PRINT_PREVIEW_EXITED, this, false); - b.addEventListener('MultipleTabHandlerTabsClosing', this, false); + b.addEventListener('nsDOMMultipleTabHandlerTabsClosing', this, false); this.tabbarDNDObserver; this.panelDNDObserver; @@ -1541,7 +1541,7 @@ TreeStyleTabBrowser.prototype = { tabContainer.removeEventListener('dblclick', this, true); tabContainer.removeEventListener('select', this, true); tabContainer.removeEventListener('scroll', this, true); - tabContainer.removeEventListener('MultipleTabHandler:TabsDragStart', this, true); + tabContainer.removeEventListener('nsDOMMultipleTabHandler:TabsDragStart', this, true); var strip = this.tabStrip; strip.removeEventListener('MozMouseHittest', this, true); @@ -1552,7 +1552,7 @@ TreeStyleTabBrowser.prototype = { window.removeEventListener(this.kEVENT_TYPE_PRINT_PREVIEW_ENTERED, this, false); window.removeEventListener(this.kEVENT_TYPE_PRINT_PREVIEW_EXITED, this, false); - b.removeEventListener('MultipleTabHandlerTabsClosing', this, false); + b.removeEventListener('nsDOMMultipleTabHandlerTabsClosing', this, false); window['piro.sakura.ne.jp'].tabsDragUtils.destroyTabBrowser(b); @@ -1945,13 +1945,13 @@ TreeStyleTabBrowser.prototype = { return this.onTreeStyleTabPrintPreviewExited(aEvent); - case 'MultipleTabHandlerTabsClosing': + case 'nsDOMMultipleTabHandlerTabsClosing': if (!this.onTabsRemoving(aEvent)) aEvent.preventDefault(); return; // cancel tab dragging by Multiple Tab - case 'MultipleTabHandler:TabsDragStart': + case 'nsDOMMultipleTabHandler:TabsDragStart': return aEvent.preventDefault(); } },