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

@@ -9,7 +9,7 @@
* events.
*/
var CustomizationHandler = {
handleEvent: function(aEvent) {
handleEvent(aEvent) {
switch (aEvent.type) {
case "customizationstarting":
this._customizationStarting();
@@ -23,11 +23,11 @@ var CustomizationHandler = {
}
},
isCustomizing: function() {
isCustomizing() {
return document.documentElement.hasAttribute("customizing");
},
_customizationStarting: function() {
_customizationStarting() {
// Disable the toolbar context menu items
let menubar = document.getElementById("main-menubar");
for (let childNode of menubar.childNodes)
@@ -51,11 +51,11 @@ var CustomizationHandler = {
}
},
_customizationChange: function() {
_customizationChange() {
PlacesToolbarHelper.customizeChange();
},
_customizationEnding: function(aDetails) {
_customizationEnding(aDetails) {
// Update global UI elements that may have been added or removed
if (aDetails.changed) {
gURLBar = document.getElementById("urlbar");