Skip to content
Snippets Groups Projects
Commit b97fab4f authored by Maximilian Giller's avatar Maximilian Giller
Browse files

Renamed function for clarity

parent a3f1d968
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ class Graph extends ManagedData {
this.triggerOnChange();
}
formatData(data) {
storableData(data) {
return this.getCleanData(data, true);
}
......
......@@ -36,12 +36,12 @@ class ManagedData {
return true;
}
formatData(data) {
storableData(data) {
return data;
}
storeCurrentData(description) {
var formattedData = this.formatData(this.data);
var formattedData = this.storableData(this.data);
this.history.unshift({
description: description,
......@@ -51,5 +51,6 @@ class ManagedData {
// Forget about the currently stored potential future
this.history.splice(0, this.historyPosition);
this.historyPosition = 0;
console.log(this.history[0]);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment