Merge remote-tracking branch 'origin/tree-refresh-745'

This commit is contained in:
Pete Richards 2016-03-17 11:40:53 -07:00
commit 8f6a287fb8
2 changed files with 4 additions and 3 deletions

View File

@ -60,8 +60,9 @@ define([
}
};
TreeView.prototype.loadComposition = function (domainObject) {
var self = this;
TreeView.prototype.loadComposition = function () {
var self = this,
domainObject = this.activeObject;
function addNode(domainObject, index) {
self.nodeViews[index].model(domainObject);

View File

@ -167,7 +167,7 @@ define([
beforeEach(function () {
mockComposition.pop();
testCapabilities.mutation.listen
.mostRecentCall.args[0](mockDomainObject);
.mostRecentCall.args[0](mockDomainObject.getModel());
waitForCompositionCallback();
});