Verified Commit 458b9fa3 authored by Elias Häußler's avatar Elias Häußler 🐛

[TASK] Remove data and dataFile properties from Controller class

parent 668e1094
......@@ -35,12 +35,6 @@ export class Controller
*/
this.chart = chart;
/**
* Reference to CSV data source file
* @type {string}
*/
this.dataFile = "";
// Initialize spinner, get data information and render map and chart
Controller.initSpinner();
this.getDataInformation();
......@@ -85,11 +79,6 @@ export class Controller
})
.done(data =>
{
this.data = data;
// Set data file
this.dataFile = data.file;
// Display data information
$(Global.DATA_INFO_SELECTOR).html
(
......@@ -132,8 +121,8 @@ export class Controller
// Start visualization, then hide spinner
$.when(
this.map.data(this.dataFile),
this.chart.data(this.dataFile),
this.map.data(data.file),
this.chart.data(data.file),
this.update()
).done(Controller.closeFullscreen);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment