mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 21:53:08 +00:00
[API] Remove toLegacyDefinition
https://github.com/nasa/openmct/pull/1212#discussion_r81666469
This commit is contained in:
parent
09d59f00e7
commit
13b5e7c00e
@ -55,28 +55,5 @@ define(function () {
|
||||
return domainObject.type === this.key;
|
||||
};
|
||||
|
||||
/**
|
||||
* Get a definition for this type that can be registered using the
|
||||
* legacy bundle format.
|
||||
* @private
|
||||
*/
|
||||
Type.prototype.toLegacyDefinition = function () {
|
||||
var def = {};
|
||||
def.name = this.definition.metadata.label;
|
||||
def.glyph = this.definition.metadata.glyph;
|
||||
def.description = this.definition.metadata.description;
|
||||
def.properties = this.definition.form;
|
||||
|
||||
if (this.definition.initialize) {
|
||||
def.model = {};
|
||||
this.definition.initialize(def.model);
|
||||
}
|
||||
|
||||
if (this.definition.creatable) {
|
||||
def.features = ['creation'];
|
||||
}
|
||||
return def;
|
||||
};
|
||||
|
||||
return Type;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user