From 2b4be0cdfc9ca991d228414939d2038a067739fa Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 30 Sep 2014 21:11:12 +0900 Subject: [PATCH] Update library --- content/treestyletab/res/tabsDragUtils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/treestyletab/res/tabsDragUtils.js b/content/treestyletab/res/tabsDragUtils.js index c5b07ad4..627a819c 100644 --- a/content/treestyletab/res/tabsDragUtils.js +++ b/content/treestyletab/res/tabsDragUtils.js @@ -1,5 +1,5 @@ /* - Multiple Tabs Drag and Drop Utilities for Firefox 24 or later + Multiple Tabs Drag and Drop Utilities for Firefox 31 or later Usage: window['piro.sakura.ne.jp'].tabsDragUtils.initTabBrowser(gBrowser); @@ -15,7 +15,7 @@ http://github.com/piroor/fxaddonlib-tabs-drag-utils */ (function() { - const currentRevision = 31; + const currentRevision = 32; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; @@ -757,13 +757,13 @@ getSelectedTabs : function TDU_getSelectedTabs(aEventOrTabOrTabBrowser) { - var event = aEventOrTabOrTabBrowser instanceof Components.interfaces.nsIDOMEvent ? aEventOrTabOrTabBrowser : null ; + var event = aEventOrTabOrTabBrowser instanceof Event ? aEventOrTabOrTabBrowser : null ; var b = this.getTabBrowserFromChild(event ? event.target : aEventOrTabOrTabBrowser ); if (!b) return []; var w = b.ownerDocument.defaultView; - var tab = (aEventOrTabOrTabBrowser instanceof Components.interfaces.nsIDOMElement && + var tab = (aEventOrTabOrTabBrowser instanceof Element && aEventOrTabOrTabBrowser.localName == 'tab') ? aEventOrTabOrTabBrowser : (event && this.getTabFromEvent(event)) ;