Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes

MozReview-Commit-ID: 2RVNt140Zte
This commit is contained in:
J. Ryan Stinnett
2018-03-12 13:24:38 -05:00
parent dd06aa1c17
commit 8d1c817851
1420 changed files with 7101 additions and 7101 deletions

View File

@@ -6,14 +6,14 @@
"use strict";
// Make this available to both AMD and CJS environments
define(function (require, exports, module) {
define(function(require, exports, module) {
/**
* Implementation of the default data provider. A provider is state less
* object responsible for transformation data (usually a state) to
* a structure that can be directly consumed by the tree-view component.
*/
let ObjectProvider = {
getChildren: function (object) {
getChildren: function(object) {
let children = [];
if (object instanceof ObjectProperty) {
@@ -38,7 +38,7 @@ define(function (require, exports, module) {
return children;
},
hasChildren: function (object) {
hasChildren: function(object) {
if (object instanceof ObjectProperty) {
object = object.value;
}
@@ -58,22 +58,22 @@ define(function (require, exports, module) {
return Object.keys(object).length > 0;
},
getLabel: function (object) {
getLabel: function(object) {
return (object instanceof ObjectProperty) ?
object.name : null;
},
getValue: function (object) {
getValue: function(object) {
return (object instanceof ObjectProperty) ?
object.value : null;
},
getKey: function (object) {
getKey: function(object) {
return (object instanceof ObjectProperty) ?
object.name : null;
},
getType: function (object) {
getType: function(object) {
return (object instanceof ObjectProperty) ?
typeof object.value : typeof object;
}