From e3adc1e93f2867ded708e15fa0f4f13e4d430543 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Tue, 11 Jan 2011 13:29:21 +0900 Subject: [PATCH] use DataContainerEvent type --- content/treestyletab/res/tabsDragUtils.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/res/tabsDragUtils.js b/content/treestyletab/res/tabsDragUtils.js index 96b5aa3e..16f05481 100644 --- a/content/treestyletab/res/tabsDragUtils.js +++ b/content/treestyletab/res/tabsDragUtils.js @@ -7,13 +7,13 @@ // in dragstart event listener window['piro.sakura.ne.jp'].tabsDragUtils.startTabsDrag(aEvent, aArrayOfTabs); - license: The MIT License, Copyright (c) 2010 SHIMODA "Piro" Hiroshi + license: The MIT License, Copyright (c) 2010-2011 SHIMODA "Piro" Hiroshi http://github.com/piroor/fxaddonlibs/blob/master/license.txt original: http://github.com/piroor/fxaddonlibs/blob/master/tabsDragUtils.js */ (function() { - const currentRevision = 6; + const currentRevision = 7; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; @@ -308,8 +308,10 @@ _fireTabsDropEvent : function TDU_fireTabsDropEvent(aTabs) { - var event = document.createEvent('Events'); + var event = document.createEvent('DataContainerEvents'); event.initEvent(this.EVENT_TYPE_TABS_DROP, true, true); + event.setData('tabs', aTabs); + // for backward compatibility event.tabs = aTabs; return this._dropTarget.dispatchEvent(event); },