mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 15:18:12 +00:00
[Code Style] Satisfy JSLint
Add missing semicolons etc. to satisfy JSLint after changes for WTD-1482.
This commit is contained in:
@ -179,7 +179,7 @@ define(
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
TypeImpl.prototype.hasFeature = function (feature) {
|
||||
return this.featureSet[feature] || false;
|
||||
|
@ -160,28 +160,28 @@ define(
|
||||
return Array.isArray(value) ? value : [value];
|
||||
}
|
||||
|
||||
function buildTypeDef(typeKey) {
|
||||
var typeDefs = typeDefinitions[typeKey] || [],
|
||||
inherits = typeDefs.map(function (typeDef) {
|
||||
return asArray(typeDef.inherits || []);
|
||||
}).reduce(function (a, b) {
|
||||
return a.concat(b);
|
||||
}, []),
|
||||
def = collapse(
|
||||
[getUndefinedType()].concat(
|
||||
inherits.map(lookupTypeDef)
|
||||
).concat(typeDefs)
|
||||
);
|
||||
|
||||
// Always provide a default name
|
||||
def.model = def.model || {};
|
||||
def.model.name = def.model.name ||
|
||||
("Unnamed " + (def.name || "Object"));
|
||||
|
||||
return def;
|
||||
}
|
||||
|
||||
function lookupTypeDef(typeKey) {
|
||||
function buildTypeDef(typeKey) {
|
||||
var typeDefs = typeDefinitions[typeKey] || [],
|
||||
inherits = typeDefs.map(function (typeDef) {
|
||||
return asArray(typeDef.inherits || []);
|
||||
}).reduce(function (a, b) {
|
||||
return a.concat(b);
|
||||
}, []),
|
||||
def = collapse(
|
||||
[getUndefinedType()].concat(
|
||||
inherits.map(lookupTypeDef)
|
||||
).concat(typeDefs)
|
||||
);
|
||||
|
||||
// Always provide a default name
|
||||
def.model = def.model || {};
|
||||
def.model.name = def.model.name ||
|
||||
("Unnamed " + (def.name || "Object"));
|
||||
|
||||
return def;
|
||||
}
|
||||
|
||||
return (self.typeMap[typeKey] =
|
||||
self.typeMap[typeKey] || buildTypeDef(typeKey));
|
||||
}
|
||||
|
Reference in New Issue
Block a user