diff --git a/modules/browser.js b/modules/browser.js index 35b50a31..115009ad 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -166,9 +166,12 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { if (node._scrollbox) node = node._scrollbox; var boxObject = (node.scrollBoxObject || node.boxObject); - try { + try { boxObject = boxObject.QueryInterface(Ci.nsIScrollBoxObject); // for Tab Mix Plus (ensure scrollbox-ed) - } catch (ex) { /* May not implement this interface e.g. after bug 979835 */ } + } + catch(e) { + // May not implement this interface e.g. after bug 979835 + } return boxObject; }, diff --git a/modules/lib/autoScroll.js b/modules/lib/autoScroll.js index acc81606..104d304e 100644 --- a/modules/lib/autoScroll.js +++ b/modules/lib/autoScroll.js @@ -6,10 +6,9 @@ .autoScroll .processAutoScroll(mouseMoveOrDragOverEvent); - license: The MIT License, Copyright (c) 2009-2012 YUKI "Piro" Hiroshi - http://github.com/piroor/fxaddonlibs/blob/master/license.txt + license: The MIT License, Copyright (c) 2009-2014 YUKI "Piro" Hiroshi original: - http://github.com/piroor/fxaddonlibs/blob/master/autoScroll.js + http://github.com/piroor/fxaddonlib-autoscroll */ /* To work as a JS Code Module */ @@ -30,7 +29,7 @@ if (typeof window == 'undefined' || } (function() { - const currentRevision = 6; + const currentRevision = 7; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; @@ -164,10 +163,13 @@ if (typeof window == 'undefined' || getScrollBoxObject : function(aTabBrowser) { var box = this.getScrollBox(aTabBrowser); - var boxObject = (box.scrollBoxObject || box.boxObject); + var boxObject = box.scrollBoxObject || box.boxObject; try { - boxObject = boxObject.QueryInterface(Ci.nsIScrollBoxObject); // for Tab Mix Plus (ensure scrollbox-ed) - } catch (ex) { /* May not implement this interface e.g. after bug 979835 */ } + boxObject = boxObject.QueryInterface(Ci.nsIScrollBoxObject); // Tab Mix Plus + } + catch(e) { + // May not implement this interface e.g. after bug 979835 + } return boxObject; },