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

MozReview-Commit-ID: 7E7LPorrEje
This commit is contained in:
Jared Wein
2016-12-29 18:34:54 -05:00
parent 2de0319338
commit e3149c378f
824 changed files with 7775 additions and 7789 deletions

View File

@@ -96,7 +96,7 @@ var tabPreviews = {
};
var tabPreviewPanelHelper = {
opening: function(host) {
opening(host) {
host.panel.hidden = false;
var handler = this._generateHandler(host);
@@ -105,7 +105,7 @@ var tabPreviewPanelHelper = {
host._prevFocus = document.commandDispatcher.focusedElement;
},
_generateHandler: function(host) {
_generateHandler(host) {
var self = this;
return function(event) {
if (event.target == host.panel) {
@@ -114,11 +114,11 @@ var tabPreviewPanelHelper = {
}
};
},
_popupshown: function(host) {
_popupshown(host) {
if ("setupGUI" in host)
host.setupGUI();
},
_popuphiding: function(host) {
_popuphiding(host) {
if ("suspendGUI" in host)
host.suspendGUI();
@@ -219,7 +219,7 @@ var ctrlTab = {
else
this.uninit();
},
observe: function(aSubject, aTopic, aPrefName) {
observe(aSubject, aTopic, aPrefName) {
this.readPref();
},
@@ -507,7 +507,7 @@ var ctrlTab = {
}
},
filterForThumbnailExpiration: function(aCallback) {
filterForThumbnailExpiration(aCallback) {
// Save a few more thumbnails than we actually display, so that when tabs
// are closed, the previews we add instead still get thumbnails.
const extraThumbnails = 3;
@@ -521,7 +521,7 @@ var ctrlTab = {
aCallback(urls);
},
_initRecentlyUsedTabs: function() {
_initRecentlyUsedTabs() {
this._recentlyUsedTabs =
Array.filter(gBrowser.tabs, tab => !tab.closing)
.sort((tab1, tab2) => tab2.lastAccessed - tab1.lastAccessed);