mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 16:49:42 +00:00
Merge remote-tracking branch 'origin/master' into persist-on-mutation-825
This commit is contained in:
@ -58,7 +58,7 @@ define(
|
||||
* @property {string} key machine-readable identifier for this action
|
||||
* @property {string} name human-readable name for this action
|
||||
* @property {string} description human-readable description
|
||||
* @property {string} glyph character to display as icon
|
||||
* @property {string} cssclass CSS class for icon
|
||||
* @property {ActionContext} context the context in which the action
|
||||
* will be performed.
|
||||
*/
|
||||
|
@ -24,7 +24,7 @@ define([], function () {
|
||||
|
||||
/**
|
||||
* Provides a cache for domain object models which exist in memory,
|
||||
* but may or may not exist in backing persistene stores.
|
||||
* but may or may not exist in backing persistence stores.
|
||||
* @constructor
|
||||
* @memberof platform/core
|
||||
*/
|
||||
|
@ -42,7 +42,7 @@ define(
|
||||
* @implements {ModelService}
|
||||
* @param {Array} roots all `roots[]` extensions
|
||||
* @param $q Angular's $q, for promises
|
||||
* @param $log Anuglar's $log, for logging
|
||||
* @param $log Angular's $log, for logging
|
||||
*/
|
||||
function RootModelProvider(roots, $q, $log) {
|
||||
// Pull out identifiers to used as ROOT's
|
||||
|
@ -49,7 +49,7 @@ define(
|
||||
}
|
||||
}
|
||||
|
||||
// Prepoulate maps with models to make subsequent lookup faster.
|
||||
// Prepopulate maps with models to make subsequent lookup faster.
|
||||
models.forEach(addModelToMap);
|
||||
|
||||
this.modelMap = modelMap;
|
||||
|
@ -56,13 +56,13 @@ define(
|
||||
* @method Type#getDescription
|
||||
*/
|
||||
/**
|
||||
* Get the glyph associated with this type. Glyphs are
|
||||
* single-character strings which will appear as icons (when
|
||||
* Get the cssclass associated with this type. cssclass is a
|
||||
* string which will appear as an icon (when
|
||||
* displayed in an appropriate font) which visually
|
||||
* distinguish types from one another.
|
||||
*
|
||||
* @returns {string} the glyph to be displayed
|
||||
* @method Type#getGlyph
|
||||
* @returns {string} the cssclass for this type
|
||||
* @method Type#getCssClass
|
||||
*/
|
||||
/**
|
||||
* Get an array of properties associated with objects of
|
||||
@ -144,8 +144,8 @@ define(
|
||||
return this.typeDef.description;
|
||||
};
|
||||
|
||||
TypeImpl.prototype.getGlyph = function () {
|
||||
return this.typeDef.glyph;
|
||||
TypeImpl.prototype.getCssClass = function () {
|
||||
return this.typeDef.cssclass;
|
||||
};
|
||||
|
||||
TypeImpl.prototype.getProperties = function () {
|
||||
|
@ -43,7 +43,7 @@ define(
|
||||
},
|
||||
ARRAY_SUFFIX = '[]';
|
||||
|
||||
// Utility function to handle arrays of conversiions
|
||||
// Utility function to handle arrays of conversions
|
||||
function ArrayConversion(conversion) {
|
||||
return {
|
||||
toModelValue: function (formValue) {
|
||||
|
@ -68,7 +68,7 @@ define(
|
||||
}) : array;
|
||||
}
|
||||
|
||||
// Reduce an array of type definitions to a single type definiton,
|
||||
// Reduce an array of type definitions to a single type definition,
|
||||
// which has merged all properties in order.
|
||||
function collapse(typeDefs) {
|
||||
var collapsed = typeDefs.reduce(function (a, b) {
|
||||
|
@ -61,7 +61,7 @@ define(
|
||||
* domain object's whose `type` capability matches or inherits
|
||||
* from that type.
|
||||
*
|
||||
* Views themselves are primarily metadata, such as name, glyph, and
|
||||
* Views themselves are primarily metadata, such as name, icon and
|
||||
* description (to be shown in the UI); they do not contain any
|
||||
* information directly applicable to rendering to the DOM, although
|
||||
* they do contain sufficient information (such as a `templateUrl`,
|
||||
|
Reference in New Issue
Block a user