diff --git a/editor/js/graph.js b/editor/js/graph.js index 7d47f38ca2f24fae06adb9a59494ee35ec823a2d..cefc9a4b0b6c956a97ce3bdd7ffb90ec14408c66 100644 --- a/editor/js/graph.js +++ b/editor/js/graph.js @@ -43,7 +43,7 @@ class Graph extends ManagedData { this.triggerOnChange(); } - formatData(data) { + storableData(data) { return this.getCleanData(data, true); } diff --git a/editor/js/manageddata.js b/editor/js/manageddata.js index c83ddd735033027b7cb29219c427c28b50e2e373..d97d0d23889104c49ea805ff2997fcf0524be40f 100644 --- a/editor/js/manageddata.js +++ b/editor/js/manageddata.js @@ -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]); } }