mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 07:08:12 +00:00
[Creation] Complete rename of capability
This commit is contained in:
@ -27,14 +27,14 @@ define(
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the `creation` capability. This allows new domain
|
* Implements the `instantiation` capability. This allows new domain
|
||||||
* objects to be instantiated.
|
* objects to be instantiated.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @memberof platform/core
|
* @memberof platform/core
|
||||||
* @param $injector Angular's `$injector`
|
* @param $injector Angular's `$injector`
|
||||||
*/
|
*/
|
||||||
function CreationCapability($injector) {
|
function InstantiationCapability($injector) {
|
||||||
this.$injector = $injector;
|
this.$injector = $injector;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ define(
|
|||||||
*
|
*
|
||||||
* @returns {DomainObject} the new domain object
|
* @returns {DomainObject} the new domain object
|
||||||
*/
|
*/
|
||||||
CreationCapability.prototype.instantiate = function (model) {
|
InstantiationCapability.prototype.instantiate = function (model) {
|
||||||
this.instantiate = this.$injector.get("instantiate");
|
this.instantiate = this.$injector.get("instantiate");
|
||||||
return this.instantiate(model);
|
return this.instantiate(model);
|
||||||
};
|
};
|
||||||
@ -56,9 +56,9 @@ define(
|
|||||||
* Alias of `create`.
|
* Alias of `create`.
|
||||||
* @see {platform/core.CreationCapability#create}
|
* @see {platform/core.CreationCapability#create}
|
||||||
*/
|
*/
|
||||||
CreationCapability.prototype.invoke =
|
InstantiationCapability.prototype.invoke =
|
||||||
CreationCapability.prototype.instantiate;
|
InstantiationCapability.prototype.instantiate;
|
||||||
|
|
||||||
return CreationCapability;
|
return InstantiationCapability;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user