summaryrefslogtreecommitdiff
path: root/store.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-04-30 12:18:06 +0200
committerjmoenig <jens@moenig.org>2014-04-30 12:18:06 +0200
commit51e17d2ce9368c3546b7e27809dfbd187cefb246 (patch)
tree06540a8b037c5479ae853f320cad280eb3171fed /store.js
parent8424ba72fdc11cd2ea5f624d249beca3f61427a5 (diff)
downloadsnap-51e17d2ce9368c3546b7e27809dfbd187cefb246.tar.gz
snap-51e17d2ce9368c3546b7e27809dfbd187cefb246.zip
enable storage of first-class costumes
Diffstat (limited to 'store.js')
-rw-r--r--store.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/store.js b/store.js
index b3f5d95..d69667a 100644
--- a/store.js
+++ b/store.js
@@ -61,7 +61,7 @@ SyntaxElementMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.store = '2014-February-13';
+modules.store = '2014-April-30';
// XML_Serializer ///////////////////////////////////////////////////////
@@ -457,8 +457,6 @@ SnapSerializer.prototype.loadProjectModel = function (xmlNode) {
}
});
- this.objects = {};
-
/* Global Variables */
if (model.globalVariables) {
@@ -468,6 +466,8 @@ SnapSerializer.prototype.loadProjectModel = function (xmlNode) {
);
}
+ this.objects = {};
+
/* Watchers */
model.sprites.childrenNamed('watcher').forEach(function (model) {
@@ -521,7 +521,7 @@ SnapSerializer.prototype.loadProjectModel = function (xmlNode) {
))
);
project.stage.add(watcher);
- watcher.update();
+ watcher.onNextStep = function () {this.currentValue = null; };
// set watcher's contentsMorph's extent if it is showing a list and
// its monitor dimensions are given
@@ -1302,6 +1302,12 @@ SnapSerializer.prototype.openProject = function (project, ide) {
ide.createCorral();
ide.selectSprite(sprite);
ide.fixLayout();
+
+ // force watchers to update
+ //project.stage.watchers().forEach(function (watcher) {
+ // watcher.onNextStep = function () {this.currentValue = null;};
+ //})
+
ide.world().keyboardReceiver = project.stage;
};