[Creation] Complete rename of capability

This commit is contained in:
Victor Woeltjen
2015-11-06 14:31:26 -08:00
parent 62e2114349
commit c184a9ce7c

View File

@ -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;
} }
); );