[Timeline] Fix columns exported

This commit is contained in:
Victor Woeltjen 2016-02-08 18:07:03 -08:00
parent 303e870b0d
commit 273cf1c14f
3 changed files with 7 additions and 6 deletions

View File

@ -53,7 +53,8 @@ define([
);
}
return new TimelineTraverser().buildObjectList()
return new TimelineTraverser(this.domainObject)
.buildObjectList()
.then(doExport);
};

View File

@ -24,17 +24,17 @@
define([], function () {
"use strict";
function MetadataColumn(property) {
this.property = property;
function MetadataColumn(propertyName) {
this.propertyName = propertyName;
}
MetadataColumn.prototype.name = function () {
return this.property.name;
return this.propertyName;
};
MetadataColumn.prototype.value = function (domainObject) {
var properties = domainObject.useCapability('metadata'),
name = this.property.name,
name = this.propertyName,
property = properties.find(function (p) {
return p.name === name;
});

View File

@ -64,7 +64,7 @@ define([
}
for (i = 0; i < maxRelationships; i += 1) {
columns.push(new RelationshipColumn(i));
columns.push(new ModeColumn(i));
}
this.domainObjects = domainObjects;