[Timeline] Pass in resources extensions

This commit is contained in:
Victor Woeltjen 2016-05-25 10:37:01 -07:00
parent ed519d89d7
commit 8162429106

View File

@ -52,9 +52,10 @@ define([
*/
ExportTimelineAsCSVTask.prototype.run = function () {
var exportService = this.exportService;
var resources = this.resources;
function doExport(objects) {
var exporter = new TimelineColumnizer(objects, this.resources),
var exporter = new TimelineColumnizer(objects, resources),
options = { headers: exporter.headers() };
return exporter.rows().then(function (rows) {
return exportService.exportCSV(rows, options);