From 5d5e77a11097945e1f1aea5023c3bfea76d903ee Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Wed, 2 Apr 2014 19:32:31 +0900 Subject: [PATCH] Update library --- content/treestyletab/res/tabsDragUtils.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/content/treestyletab/res/tabsDragUtils.js b/content/treestyletab/res/tabsDragUtils.js index 03b06023..c5b07ad4 100644 --- a/content/treestyletab/res/tabsDragUtils.js +++ b/content/treestyletab/res/tabsDragUtils.js @@ -15,7 +15,7 @@ http://github.com/piroor/fxaddonlib-tabs-drag-utils */ (function() { - const currentRevision = 30; + const currentRevision = 31; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; @@ -970,17 +970,14 @@ function StringList(aTypes) { - return { - __proto__ : aTypes, - item : function(aIndex) - { + return Object.create(aTypes, { + item : { value : function(aIndex) { return this[aIndex]; - }, - contains : function(aType) - { + } }, + contains : { value : function(aType) { return this.indexOf(aType) > -1; - } - }; + } } + }); } tabsDragUtils.DOMDataTransferProxy = DOMDataTransferProxy;