Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN

MozReview-Commit-ID: 8WoGr8i6oCR
This commit is contained in:
Jared Wein
2016-12-29 15:20:47 -05:00
parent f64a7da705
commit 34e228f767
824 changed files with 7774 additions and 7790 deletions

View File

@@ -18,14 +18,14 @@ MainProcessSingleton.prototype = {
QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver,
Ci.nsISupportsWeakReference]),
logConsoleMessage: function(message) {
logConsoleMessage(message) {
let logMsg = message.data;
logMsg.wrappedJSObject = logMsg;
Services.obs.notifyObservers(logMsg, "console-api-log-event", null);
},
// Called when a webpage calls window.external.AddSearchProvider
addSearchEngine: function({ target: browser, data: { pageURL, engineURL } }) {
addSearchEngine({ target: browser, data: { pageURL, engineURL } }) {
pageURL = NetUtil.newURI(pageURL);
engineURL = NetUtil.newURI(engineURL, null, pageURL);
@@ -65,7 +65,7 @@ MainProcessSingleton.prototype = {
})
},
observe: function(subject, topic, data) {
observe(subject, topic, data) {
switch (topic) {
case "app-startup": {
Services.obs.addObserver(this, "xpcom-shutdown", false);