[Pkg-mozext-commits] [tabmixplus] 02/73: Remove jshint comments

David Prévot taffit at moszumanska.debian.org
Mon May 9 02:30:49 UTC 2016


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 9d2f5bb34d5aa2e945ca9bb4e8e71f428872f7db
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sat Mar 19 22:43:22 2016 +0200

    Remove jshint comments
---
 chrome/content/about.js                                  | 2 +-
 chrome/content/changecode.js                             | 2 --
 chrome/content/content.js                                | 2 +-
 chrome/content/minit/minit.js                            | 4 ++--
 chrome/content/minit/tablib.js                           | 2 --
 chrome/content/preferences/appearance.js                 | 2 +-
 chrome/content/preferences/menu.js                       | 2 +-
 chrome/content/preferences/overlay/preferencesOverlay.js | 2 +-
 chrome/content/preferences/preferences.js                | 5 ++---
 chrome/content/preferences/subdialogs/pref-appearance.js | 2 +-
 chrome/content/session/sessionStore.js                   | 6 +++---
 chrome/content/utils.js                                  | 2 +-
 modules/AsyncUtils.jsm                                   | 1 -
 modules/DownloadLastDir.jsm                              | 1 -
 14 files changed, 14 insertions(+), 21 deletions(-)

diff --git a/chrome/content/about.js b/chrome/content/about.js
index 2ff7aca..1b7d57e 100644
--- a/chrome/content/about.js
+++ b/chrome/content/about.js
@@ -1,7 +1,7 @@
 /* exported init */
 "use strict";
 
-function init() { // jshint ignore:line
+function init() {
   var addon = window.arguments[0];
   var extensionsStrings = document.getElementById("extensionsStrings");
   var extensionVersion, currentVersion;
diff --git a/chrome/content/changecode.js b/chrome/content/changecode.js
index 72b7026..0db6724 100644
--- a/chrome/content/changecode.js
+++ b/chrome/content/changecode.js
@@ -1,4 +1,3 @@
-/* jshint strict: false */
 /* eslint strict: 0 */
 
 // don't use strict for this file
@@ -180,7 +179,6 @@ Tabmix.nonStrictMode = function(aObj, aFn, aArg) {
 };
 
 (function(obj) {
-  /* jshint moz: true, esnext: false */
   let global = Components.utils.getGlobalForObject(obj);
   let fn = global["ev" + "al"];
   Tabmix._makeCode = function(name, code) {
diff --git a/chrome/content/content.js b/chrome/content/content.js
index e6cfe8f..b72fd44 100644
--- a/chrome/content/content.js
+++ b/chrome/content/content.js
@@ -1,7 +1,7 @@
 /* eslint mozilla/balanced-listeners:0 */
 "use strict";
 
-var {classes: Cc, interfaces: Ci, utils: Cu} = Components; // jshint ignore:line
+var {classes: Cc, interfaces: Ci, utils: Cu} = Components;
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm", this);
 
diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index f7e2470..5ac92ad 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -365,10 +365,10 @@ var TMP_tabDNDObserver = {
     event.stopPropagation();
 
     document.getElementById("tabmix-tooltip").hidePopup();
-    /* jshint ignore:start */ /* eslint-disable */
+    /* eslint-disable */
     // old TreeStyleTab extension version look for isTabReorder in our code
     var isTabReorder = draggeType == this.DRAG_TAB_IN_SAME_WINDOW;
-    /* jshint ignore:end */ /* eslint-enable */
+    /* eslint-enable */
     var newIndex = this._getDNDIndex(event);
     var oldIndex = draggedTab ? draggedTab._tPos : -1;
     var left_right;
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index 7f20c25..c1c5e9c 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -985,7 +985,6 @@ var tablib = { // eslint-disable-line
       }
       // we need to update history title after the new page loaded for use in back/forword button
       function updateNewHistoryTitle() {
-        /* jshint validthis: true */
         try {
           this.removeEventListener("SSTabRestored", updateNewHistoryTitle, true);
           let browser = this.linkedBrowser;
@@ -1000,7 +999,6 @@ var tablib = { // eslint-disable-line
         }
       }
       function urlForDownload() {
-        /* jshint validthis: true */
         try {
           this.removeEventListener("SSTabRestored", urlForDownload, true);
           let browser = this.linkedBrowser;
diff --git a/chrome/content/preferences/appearance.js b/chrome/content/preferences/appearance.js
index 68ad4e5..64cd6c3 100644
--- a/chrome/content/preferences/appearance.js
+++ b/chrome/content/preferences/appearance.js
@@ -1,7 +1,7 @@
 /* exported gAppearancePane */
 "use strict";
 
-var gAppearancePane = { // jshint ignore:line
+var gAppearancePane = {
   init: function() {
     var browserWindow = Tabmix.getTopWin();
     // disable options for position the tabbar and scroll mode if TreeStyleTab extension installed
diff --git a/chrome/content/preferences/menu.js b/chrome/content/preferences/menu.js
index 523693b..8780e6e 100644
--- a/chrome/content/preferences/menu.js
+++ b/chrome/content/preferences/menu.js
@@ -1,7 +1,7 @@
 /* exported gMenuPane */
 "use strict";
 
-var gMenuPane = { // jshint ignore:line
+var gMenuPane = {
   init: function() {
     $("pinTab").label = gPrefWindow.pinTabLabel;
     $("togglePinTab").setAttribute("label", gPrefWindow.pinTabLabel);
diff --git a/chrome/content/preferences/overlay/preferencesOverlay.js b/chrome/content/preferences/overlay/preferencesOverlay.js
index 5115e91..31e1332 100644
--- a/chrome/content/preferences/overlay/preferencesOverlay.js
+++ b/chrome/content/preferences/overlay/preferencesOverlay.js
@@ -2,7 +2,7 @@
 
 Components.utils.import("resource://tabmixplus/Services.jsm");
 
-var gTabMix_preferencesOverlay = { // jshint ignore:line
+var gTabMix_preferencesOverlay = {
   id: function(id) {
     return document.getElementById(id);
   },
diff --git a/chrome/content/preferences/preferences.js b/chrome/content/preferences/preferences.js
index 4b24061..013d72c 100644
--- a/chrome/content/preferences/preferences.js
+++ b/chrome/content/preferences/preferences.js
@@ -1,4 +1,3 @@
-/* jshint esnext: true */
 /* globals _sminstalled, gPreferenceList */
 /* exported  defaultSetting, toggleSyncPreference, exportData, importData,
              showPane, openHelp */
@@ -6,12 +5,12 @@
 
 /***** Preference Dialog Functions *****/
 var gIncompatiblePane;
-var {classes: Cc, interfaces: Ci, utils: Cu} = Components; // jshint ignore:line
+var {classes: Cc, interfaces: Ci, utils: Cu} = Components;
 var PrefFn = {0: "", 32: "CharPref", 64: "IntPref", 128: "BoolPref"};
 
 this.$ = id => document.getElementById(id);
 
-var gPrefWindow = { // jshint ignore:line
+var gPrefWindow = {
   widthChanged: false,
   _initialized: false,
   init: function() {
diff --git a/chrome/content/preferences/subdialogs/pref-appearance.js b/chrome/content/preferences/subdialogs/pref-appearance.js
index 9029a16..6e77275 100644
--- a/chrome/content/preferences/subdialogs/pref-appearance.js
+++ b/chrome/content/preferences/subdialogs/pref-appearance.js
@@ -3,7 +3,7 @@
 
 var $ = id => document.getElementById(id);
 
-var tabstyles = { // jshint ignore:line
+var tabstyles = {
   pref: "appearance_tab",
   init: function() {
     $("stylestabs").selectedIndex = Tabmix.prefs.prefHasUserValue(this.pref) ?
diff --git a/chrome/content/session/sessionStore.js b/chrome/content/session/sessionStore.js
index fc27e80..d07b339 100644
--- a/chrome/content/session/sessionStore.js
+++ b/chrome/content/session/sessionStore.js
@@ -6,7 +6,7 @@
  * original code by onemen
  *
  */
-var TMP_SessionStore = { // jshint ignore:line
+var TMP_SessionStore = {
   // get title for closed window from bookmark title or user tab title
   getTitleForClosedWindow: function TMP_ss_getTitleForClosedWindow(aUndoItem) {
     // if user already rename this item wo don't use other title
@@ -287,7 +287,7 @@ var TMP_SessionStore = { // jshint ignore:line
 
 };
 
-var TMP_ClosedTabs = { // jshint ignore:line
+var TMP_ClosedTabs = {
   _buttonBroadcaster: null,
   get buttonBroadcaster() {
     if (!this._buttonBroadcaster)
@@ -608,7 +608,7 @@ var TMP_ClosedTabs = { // jshint ignore:line
 
 };
 
-var TabmixConvertSession = { // jshint ignore:line
+var TabmixConvertSession = {
   get getTitle() {
     return TabmixSvc.getString("incompatible.title") + " - " + TabmixSvc.getSMString("sm.title");
   },
diff --git a/chrome/content/utils.js b/chrome/content/utils.js
index bc5e963..d52f7ae 100644
--- a/chrome/content/utils.js
+++ b/chrome/content/utils.js
@@ -1,6 +1,6 @@
 "use strict";
 
-var Tabmix = { // jshint ignore:line
+var Tabmix = {
   get prefs() {
     delete this.prefs;
     return (this.prefs = Services.prefs.getBranch("extensions.tabmix."));
diff --git a/modules/AsyncUtils.jsm b/modules/AsyncUtils.jsm
index 73538d1..3074d41 100644
--- a/modules/AsyncUtils.jsm
+++ b/modules/AsyncUtils.jsm
@@ -1,4 +1,3 @@
-/* jshint esnext: true */
 "use strict";
 
 this.EXPORTED_SYMBOLS = ["AsyncUtils"];
diff --git a/modules/DownloadLastDir.jsm b/modules/DownloadLastDir.jsm
index c9434a2..a9846ca 100644
--- a/modules/DownloadLastDir.jsm
+++ b/modules/DownloadLastDir.jsm
@@ -1,6 +1,5 @@
 /// "use strict";
 
-/* jshint strict: false */
 /* eslint strict: 0 */
 
 this.EXPORTED_SYMBOLS = ["TabmixDownloadLastDir"];

-- 
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