[Pkg-mozext-commits] [tabmixplus] 03/51: More jsHint errors
David Prévot
taffit at moszumanska.debian.org
Mon Feb 2 18:36:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 28c6588dd8a14a49f11b2d146eb37ce86a7bd649
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Dec 30 18:56:02 2014 +0200
More jsHint errors
---
chrome/content/preferences/subdialogs/pref-filetype.js | 2 +-
modules/Shortcuts.jsm | 2 +-
modules/extensions/TabGroupsManager.jsm | 11 ++++++-----
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/chrome/content/preferences/subdialogs/pref-filetype.js b/chrome/content/preferences/subdialogs/pref-filetype.js
index a8771b2..eefde66 100644
--- a/chrome/content/preferences/subdialogs/pref-filetype.js
+++ b/chrome/content/preferences/subdialogs/pref-filetype.js
@@ -77,7 +77,7 @@ function Add()
// check for data in the textbox
if (!entry.value) return false;
- var item = list.appendItem(entry.value, entry.value.toLowerCase());
+ list.appendItem(entry.value, entry.value.toLowerCase());
SelectItemAt(list.getRowCount()-1, true);
setButtonDisable(del, false);
diff --git a/modules/Shortcuts.jsm b/modules/Shortcuts.jsm
index abcd47d..98b5370 100644
--- a/modules/Shortcuts.jsm
+++ b/modules/Shortcuts.jsm
@@ -8,7 +8,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://tabmixplus/Services.jsm");
-let Shortcuts = {
+this.Shortcuts = {
keys: {
newTab: {id: "key_newNavigatorTab", default: "T accel"},
dupTab: {default: "T accel,alt"},
diff --git a/modules/extensions/TabGroupsManager.jsm b/modules/extensions/TabGroupsManager.jsm
index 63a5f3e..4c3a2b7 100644
--- a/modules/extensions/TabGroupsManager.jsm
+++ b/modules/extensions/TabGroupsManager.jsm
@@ -71,7 +71,7 @@ this.TMP_TabGroupsManager = {
sessionStore.deleteTabValue(tab, "__tabmixTGM");
TGM.moveTabToGroupBySessionStore(tab);
}
- }
+ };
this.changeCode(sessionManager, "TabmixSessionManager.loadOneWindow")._replace(
// get saved group data and repalce ids with new one
@@ -105,7 +105,8 @@ this.TMP_TabGroupsManager = {
)._replace(
'TMP_ClosedTabs.setButtonDisableState();',
' if (_restoreSelect && (overwrite || (!concatenate && !currentTabIsBalnk)))' +
- ' this.updateSelected(newIndex + _lastSelectedIndex, overwrite || caller=="firstwindowopen" || caller=="windowopenedbytabmix");' +
+ ' this.updateSelected(newIndex + _lastSelectedIndex, overwrite ||' +
+ ' caller=="firstwindowopen" || caller=="windowopenedbytabmix");' +
' $&'
)._replace(
'this.SessionStore[fnName](window, tabs, tabsData, 0);',
@@ -114,7 +115,7 @@ this.TMP_TabGroupsManager = {
).toCode();
// for TabGroupsManager use - don't change function name from tabmixSessionsManager
- aWindow.TMP_TabGroupsManager = {}
+ aWindow.TMP_TabGroupsManager = {};
aWindow.TMP_TabGroupsManager.tabmixSessionsManager = this.tabmixSessionsManager.bind(aWindow);
this.changeCode(this, "TMP_TabGroupsManager._saveAllGroupsData", {forceUpdate: true})
.toCode(false, aWindow.TabmixSessionManager, "saveAllGroupsData");
@@ -127,7 +128,7 @@ this.TMP_TabGroupsManager = {
return false;
return this.Tabmix.prefs.getBoolPref("sessions.manager") &&
- (!this.Tabmix.isWindowAfterSessionRestore || "tabmixdata" in this)
+ (!this.Tabmix.isWindowAfterSessionRestore || "tabmixdata" in this);
},
// for TabGroupsManager use
@@ -145,4 +146,4 @@ this.TMP_TabGroupsManager = {
}
}
-}
+};
--
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