From 0bbcf97f55fbd5d21989a71098f7924c4f4b7113 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 24 Mar 2010 18:24:09 +0000 Subject: [PATCH] var => let git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6433 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index d8620264..2febd99b 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -720,7 +720,7 @@ catch(e) { if (!draggedTab) { // dropping of urls - var url; + let url; for (let i = 0; i < tabbar._supportedLinkDropTypes.length; i++) { let dataType = tabbar._supportedLinkDropTypes[i]; let isURLList = dataType == 'text/uri-list'; @@ -736,10 +736,10 @@ catch(e) { nsDragAndDrop.dragDropSecurityCheck(aEvent, sv.getCurrentDragSession(), url); - var bgLoad = this.getPref('browser.tabs.loadInBackground'); + let bgLoad = this.getPref('browser.tabs.loadInBackground'); if (aEvent.shiftKey) bgLoad = !bgLoad; - var tab = sv.getTabFromEvent(aEvent); + let tab = sv.getTabFromEvent(aEvent); if (!tab || dt.dropEffect == 'copy') { sv.performDrop(dropActionInfo, b.loadOneTab(getShortcutOrURI(url), { inBackground: bgLoad })); }