[Pkg-mozext-commits] [tabmixplus] 115/123: Fix re-declaration of variables

David Prévot taffit at moszumanska.debian.org
Wed Sep 17 21:16:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 677f3585ea0bc61867128066a7c8b2ca7c25be56
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Sep 16 20:43:55 2014 +0300

    Fix re-declaration of variables
---
 chrome/content/click/click.js             | 4 ++--
 chrome/content/preferences/preferences.js | 2 +-
 modules/ContentClick.jsm                  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/chrome/content/click/click.js b/chrome/content/click/click.js
index 33cf7b1..861845b 100644
--- a/chrome/content/click/click.js
+++ b/chrome/content/click/click.js
@@ -921,9 +921,9 @@ var TabmixAllTabs = {
   },
 
   createMenuItems: function TMP_createMenuItems(popup, tab, value, aType) {
-    var count, mi = document.createElement("menuitem");
+    let mi = document.createElement("menuitem");
     mi.setAttribute("class", "menuitem-iconic bookmark-item alltabs-item");
-    var url = gBrowser.getBrowserForTab(tab).currentURI.spec;
+    let url = gBrowser.getBrowserForTab(tab).currentURI.spec;
     mi.setAttribute("statustext", url);
     mi.setAttribute("tooltiptext", tab.label + "\n" + url);
     let count = "";
diff --git a/chrome/content/preferences/preferences.js b/chrome/content/preferences/preferences.js
index 017ea90..3f18def 100644
--- a/chrome/content/preferences/preferences.js
+++ b/chrome/content/preferences/preferences.js
@@ -446,7 +446,7 @@ function loadData (pattern) {
   var prefName, prefValue;
   Shortcuts.prefsChangedByTabmix = true;
   for (let i = 1; i < pattern.length; i++){
-    var index = pattern[i].indexOf("=");
+    let index = pattern[i].indexOf("=");
     if (index > 0){
       prefName  = pattern[i].substring(0,index);
       prefValue = pattern[i].substring(index+1,pattern[i].length);
diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index f06d13a..12364cc 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -579,7 +579,7 @@ let ContentClickInternal = {
       return false;
 
     let {event, href, hrefFromOnClick} = this._data;
-    let href = hrefFromOnClick || href;
+    href = hrefFromOnClick || href;
 
     // prevent link with "custombutton" protocol to open new tab when custombutton extension exist
     if (event.button != 2 && typeof(custombuttons) !='undefined'){

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list