[Pkg-mozext-commits] [tabmixplus] 30/73: Enable Eslint 'dot-location'
David Prévot
taffit at moszumanska.debian.org
Mon May 9 02:30:52 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 e4def449998a55e6e666f352e8fd1ca98d0486b1
Author: onemen <tabmix.onemen at gmail.com>
Date: Sun Apr 3 16:59:25 2016 +0300
Enable Eslint 'dot-location'
---
.eslintrc.js | 2 +-
chrome/content/content.js | 8 ++++----
chrome/content/links/setup.js | 4 ++--
chrome/content/minit/tablib.js | 4 ++--
chrome/content/preferences/shortcuts.xml | 6 +++---
chrome/content/session/session.js | 4 ++--
chrome/content/session/sessionStore.js | 4 ++--
modules/Utils.jsm | 4 ++--
8 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 83057a5..c08f1cb 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -163,7 +163,7 @@ module.exports = {
// TODO - currently there are more the 1500 errors if we set "curly": 2
"curly": [0, "all"],
"default-case": 0,
- "dot-location": 0,
+ "dot-location": [2, "property"],
"dot-notation": [2, { "allowKeywords": true }],
"eol-last": 2,
"eqeqeq": 0,
diff --git a/chrome/content/content.js b/chrome/content/content.js
index 6fade4a..b85f915 100644
--- a/chrome/content/content.js
+++ b/chrome/content/content.js
@@ -143,8 +143,8 @@ var TabmixContentHandler = {
onDrop: function(event) {
let uri, name = { };
- let linkHandler = Cc["@mozilla.org/content/dropped-link-handler;1"].
- getService(Ci.nsIDroppedLinkHandler);
+ let linkHandler = Cc["@mozilla.org/content/dropped-link-handler;1"]
+ .getService(Ci.nsIDroppedLinkHandler);
try {
// Pass true to prevent the dropping of javascript:/data: URIs
uri = linkHandler.dropLink(event, name, true);
@@ -204,8 +204,8 @@ TabmixClickEventHandler = {
if (TabmixSvc.version(420) &&
Services.prefs.getBoolPref("network.http.enablePerElementReferrer") &&
node) {
- let referrerAttrValue = Services.netUtils.parseAttributePolicyString(node.
- getAttribute(TabmixSvc.version(450) ? "referrerpolicy" : "referrer"));
+ let value = node.getAttribute(TabmixSvc.version(450) ? "referrerpolicy" : "referrer");
+ let referrerAttrValue = Services.netUtils.parseAttributePolicyString(value);
if (referrerAttrValue !== Ci.nsIHttpChannel.REFERRER_POLICY_DEFAULT) {
referrerPolicy = referrerAttrValue;
}
diff --git a/chrome/content/links/setup.js b/chrome/content/links/setup.js
index ad3ae56..0c4f927 100644
--- a/chrome/content/links/setup.js
+++ b/chrome/content/links/setup.js
@@ -102,8 +102,8 @@ Tabmix.beforeBrowserInitOnLoad = function() {
// Prevent the default homepage from loading if we're going to restore a session
let hasFirstArgument = window.arguments && window.arguments[0];
if (hasFirstArgument) {
- let defaultArgs = Cc["@mozilla.org/browser/clh;1"].
- getService(Ci.nsIBrowserHandler).defaultArgs;
+ let defaultArgs = Cc["@mozilla.org/browser/clh;1"]
+ .getService(Ci.nsIBrowserHandler).defaultArgs;
if (window.arguments[0] == defaultArgs) {
SM.overrideHomepage = window.arguments[0];
window.arguments[0] = null;
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index fb5d010..37b51e2 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -805,8 +805,8 @@ var tablib = { // eslint-disable-line
// if user changed mode to single window mode while having closed window
// make sure that undoCloseWindow will open the closed window in the most recent non-private window
Tabmix.changeCode(window, "undoCloseWindow")._replace(
- 'window = #1.undoCloseWindow(aIndex || 0);'.
- replace("#1", Tabmix.isVersion(260) ? "SessionStore" : "ss"),
+ 'window = #1.undoCloseWindow(aIndex || 0);'
+ .replace("#1", Tabmix.isVersion(260) ? "SessionStore" : "ss"),
'{if (Tabmix.singleWindowMode) {\
window = Tabmix.RecentWindow.getMostRecentBrowserWindow({private: false});\
}\
diff --git a/chrome/content/preferences/shortcuts.xml b/chrome/content/preferences/shortcuts.xml
index a90336f..d48ba08 100644
--- a/chrome/content/preferences/shortcuts.xml
+++ b/chrome/content/preferences/shortcuts.xml
@@ -135,9 +135,9 @@
event.stopImmediatePropagation();
var key = {modifiers: "", key: "", keycode: ""};
- key.modifiers =
- ["ctrl", "meta", "alt", "shift"].filter(mod => event[mod + "Key"]).
- join(",").replace("ctrl", "control");
+ let modifiers = ["ctrl", "meta", "alt", "shift"];
+ key.modifiers = modifiers.filter(mod => event[mod + "Key"])
+ .join(",").replace("ctrl", "control");
if (!key.modifiers) {
let ns = Ci.nsIDOMKeyEvent;
diff --git a/chrome/content/session/session.js b/chrome/content/session/session.js
index cbf76fa..087e9cd 100644
--- a/chrome/content/session/session.js
+++ b/chrome/content/session/session.js
@@ -3126,8 +3126,8 @@ TabmixSessionManager = {
},
openNewWindow: function SM_openNewWindow(aState, aPrivate) {
- var argString = Cc["@mozilla.org/supports-string;1"].
- createInstance(Ci.nsISupportsString);
+ var argString = Cc["@mozilla.org/supports-string;1"]
+ .createInstance(Ci.nsISupportsString);
argString.data = "";
let features = "chrome,dialog=no,macsuppressanimation,all";
diff --git a/chrome/content/session/sessionStore.js b/chrome/content/session/sessionStore.js
index d07b339..6a17d32 100644
--- a/chrome/content/session/sessionStore.js
+++ b/chrome/content/session/sessionStore.js
@@ -220,8 +220,8 @@ var TMP_SessionStore = {
// sessionstroe.js file throw error since Firefox 28, and force
// syncRead in Firefox 25-27
XPCOMUtils.defineLazyGetter(Tabmix, "isWindowAfterSessionRestore", function() {
- let ss = Cc["@mozilla.org/browser/sessionstartup;1"].
- getService(Ci.nsISessionStartup);
+ let ss = Cc["@mozilla.org/browser/sessionstartup;1"]
+ .getService(Ci.nsISessionStartup);
// when TMP session manager is enabled ss.doRestore is true only after restart
ss.onceInitialized.then(function() {
Tabmix.isWindowAfterSessionRestore = ss.doRestore();
diff --git a/modules/Utils.jsm b/modules/Utils.jsm
index be8167a..5d75bfb 100644
--- a/modules/Utils.jsm
+++ b/modules/Utils.jsm
@@ -104,8 +104,8 @@ this.TabmixUtils = {
},
makeInputStream: function(aString) {
- let stream = Cc["@mozilla.org/io/string-input-stream;1"].
- createInstance(Ci.nsISupportsCString);
+ let stream = Cc["@mozilla.org/io/string-input-stream;1"]
+ .createInstance(Ci.nsISupportsCString);
stream.data = aString;
return stream;
},
--
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