mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 04:38:15 +00:00
[Code Style] Satisfy JSLint
Add missing semicolons etc. to satisfy JSLint after changes for WTD-1482.
This commit is contained in:
@ -51,14 +51,14 @@ define(
|
|||||||
return this.$q.when(
|
return this.$q.when(
|
||||||
this.navigationService.setNavigation(this.domainObject)
|
this.navigationService.setNavigation(this.domainObject)
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigate as an action is only applicable when a domain object
|
* Navigate as an action is only applicable when a domain object
|
||||||
* is described in the action context.
|
* is described in the action context.
|
||||||
* @param {ActionContext} context the context in which the action
|
* @param {ActionContext} context the context in which the action
|
||||||
* will be performed
|
* will be performed
|
||||||
* @returns true if applicable
|
* @returns {boolean} true if applicable
|
||||||
*/
|
*/
|
||||||
NavigateAction.appliesTo = function (context) {
|
NavigateAction.appliesTo = function (context) {
|
||||||
return context.domainObject !== undefined;
|
return context.domainObject !== undefined;
|
||||||
|
@ -70,7 +70,7 @@ define(
|
|||||||
*/
|
*/
|
||||||
NavigationService.prototype.addListener = function (callback) {
|
NavigationService.prototype.addListener = function (callback) {
|
||||||
this.callbacks.push(callback);
|
this.callbacks.push(callback);
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stop listening for changes in navigation state.
|
* Stop listening for changes in navigation state.
|
||||||
@ -82,7 +82,7 @@ define(
|
|||||||
this.callbacks = this.callbacks.filter(function (cb) {
|
this.callbacks = this.callbacks.filter(function (cb) {
|
||||||
return cb !== callback;
|
return cb !== callback;
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
return NavigationService;
|
return NavigationService;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ define(
|
|||||||
|
|
||||||
this.urlService = urlService;
|
this.urlService = urlService;
|
||||||
this.open = function () {
|
this.open = function () {
|
||||||
$window.open.apply($window, arguments)
|
$window.open.apply($window, arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Choose the object to be opened into a new tab
|
// Choose the object to be opened into a new tab
|
||||||
|
@ -118,7 +118,7 @@ define(
|
|||||||
* @memberof platform/commonUI/edit.EditorCapability#
|
* @memberof platform/commonUI/edit.EditorCapability#
|
||||||
*/
|
*/
|
||||||
EditorCapability.prototype.dirty = function () {
|
EditorCapability.prototype.dirty = function () {
|
||||||
return cache.dirty();
|
return this.cache.dirty();
|
||||||
};
|
};
|
||||||
|
|
||||||
return EditorCapability;
|
return EditorCapability;
|
||||||
|
@ -93,7 +93,7 @@ define(
|
|||||||
|
|
||||||
// Return a function to dismiss the bubble
|
// Return a function to dismiss the bubble
|
||||||
return function () { bubble.remove(); };
|
return function () { bubble.remove(); };
|
||||||
}
|
};
|
||||||
|
|
||||||
return InfoService;
|
return InfoService;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ define(
|
|||||||
containerType,
|
containerType,
|
||||||
selectedType
|
selectedType
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check whether or not a compose action should be allowed
|
* Check whether or not a compose action should be allowed
|
||||||
|
@ -179,7 +179,7 @@ define(
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
TypeImpl.prototype.hasFeature = function (feature) {
|
TypeImpl.prototype.hasFeature = function (feature) {
|
||||||
return this.featureSet[feature] || false;
|
return this.featureSet[feature] || false;
|
||||||
|
@ -160,28 +160,28 @@ define(
|
|||||||
return Array.isArray(value) ? value : [value];
|
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 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] =
|
return (self.typeMap[typeKey] =
|
||||||
self.typeMap[typeKey] || buildTypeDef(typeKey));
|
self.typeMap[typeKey] || buildTypeDef(typeKey));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user