[LinkService] Change variable name
...based on feedback from nasa/openmctweb#98
This commit is contained in:
@@ -57,10 +57,10 @@ define(
|
|||||||
// that parentObject.hasCapability('composition').
|
// that parentObject.hasCapability('composition').
|
||||||
var composition = parentObject.getCapability('composition');
|
var composition = parentObject.getCapability('composition');
|
||||||
|
|
||||||
return composition.add(object).then(function (result) {
|
return composition.add(object).then(function (objectInNewContext) {
|
||||||
return parentObject.getCapability('persistence')
|
return parentObject.getCapability('persistence')
|
||||||
.persist()
|
.persist()
|
||||||
.then(function () { return result; });
|
.then(function () { return objectInNewContext; });
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user