mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 21:58:13 +00:00
[Core] Remove dependency
Remove dependency from the mutation capability; it recognizes and handles promises internally, instead. WTD-931.
This commit is contained in:
@ -46,12 +46,11 @@ define(
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* @param $q Angular's $q service, for promises
|
||||
* @param {DomainObject} domainObject the domain object
|
||||
* which will expose this capability
|
||||
* @constructor
|
||||
*/
|
||||
function MutationCapability($q, domainObject) {
|
||||
function MutationCapability(domainObject) {
|
||||
|
||||
function mutate(mutator) {
|
||||
// Get the object's model and clone it, so the
|
||||
|
Reference in New Issue
Block a user