From e8a2c96943d18d66ee4383adc7a2581a17640c58 Mon Sep 17 00:00:00 2001 From: oonuma ryouyu Date: Sat, 30 Apr 2016 11:02:08 +0900 Subject: [PATCH] fix #394. --- modules/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index f1320484..cd7900bb 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -980,7 +980,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { let insertAfter = item.getAttribute('multipletab-insertafter'); if (insertAfter) { try { - eval('refNode = ('+insertAfter+').nextSibling'); + (new Function('return refNode = ('+insertAfter+').nextSibling'))(); } catch(e) { } @@ -988,7 +988,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { let insertBefore = item.getAttribute('multipletab-insertbefore'); if (refNode === void(0) && insertBefore) { try { - eval('refNode = '+insertBefore); + (new Function('return refNode = '+insertBefore))(); } catch(e) { }