From 69f7e9990083a1b582ad7dd90bf889ea02fafe60 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 21 Apr 2021 16:59:37 +0200 Subject: [PATCH] refactored project loading structure --- HISTORY.md | 3 +++ snap.html | 2 +- src/store.js | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index a1e43adf..a6a894a1 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -8,6 +8,9 @@ * **Notable Fixes:** * made scrollbars in the wardrobe and jukebox more responsive +### 2021-04-21 +* store: refactored project loading structure + ### 2021-04-20 * scenes, store, gui: multi-scene project serialization format, first pass diff --git a/snap.html b/snap.html index dd8be232..69511343 100755 --- a/snap.html +++ b/snap.html @@ -21,7 +21,7 @@ - + diff --git a/src/store.js b/src/store.js index 68bf2027..8b18d027 100644 --- a/src/store.js +++ b/src/store.js @@ -61,7 +61,7 @@ Project*/ // Global stuff //////////////////////////////////////////////////////// -modules.store = '2021-April-20'; +modules.store = '2021-April-21'; // XML_Serializer /////////////////////////////////////////////////////// @@ -326,10 +326,10 @@ SnapSerializer.prototype.loadProjectModel = function (xmlNode, ide, remixID) { '\n\nand may be incompatible or fail to load here.' ); } - return this.rawLoadProjectModel(xmlNode, remixID); + return this.loadScene(xmlNode, remixID); }; -SnapSerializer.prototype.rawLoadProjectModel = function (xmlNode, remixID) { +SnapSerializer.prototype.loadScene = function (xmlNode, remixID) { // private var scene = new Scene(), model,