mirror of
https://github.com/nasa/openmct.git
synced 2025-06-12 12:18:16 +00:00
[Tree] Refresh properly on mutation
...by removing the incorrect expectation that a domain object (and not just its model) will be passed in when mutation occurs. Addresses #745.
This commit is contained in:
@ -60,8 +60,9 @@ define([
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
TreeView.prototype.loadComposition = function (domainObject) {
|
TreeView.prototype.loadComposition = function () {
|
||||||
var self = this;
|
var self = this,
|
||||||
|
domainObject = this.activeObject;
|
||||||
|
|
||||||
function addNode(domainObject, index) {
|
function addNode(domainObject, index) {
|
||||||
self.nodeViews[index].model(domainObject);
|
self.nodeViews[index].model(domainObject);
|
||||||
|
@ -161,7 +161,7 @@ define([
|
|||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
mockComposition.pop();
|
mockComposition.pop();
|
||||||
testCapabilities.mutation.listen
|
testCapabilities.mutation.listen
|
||||||
.mostRecentCall.args[0](mockDomainObject);
|
.mostRecentCall.args[0](mockDomainObject.getModel());
|
||||||
waitForCompositionCallback();
|
waitForCompositionCallback();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user