summaryrefslogtreecommitdiff
path: root/store.js
diff options
context:
space:
mode:
authorMichael Ball <cycomachead@gmail.com>2014-05-03 19:15:52 -0700
committerMichael Ball <cycomachead@gmail.com>2014-05-03 19:15:52 -0700
commit01b9417b87688b591fe3df2a55ec367dd72f027d (patch)
tree9bb4d236387b631e4f1ca3fe57152f148d4c9fa4 /store.js
parent8badce6480d434653326684a953fccc6cf03c5d8 (diff)
parentf9989ad7cfa5e27b4784d8cd464fdc7cbe289942 (diff)
downloadsnap-byow-01b9417b87688b591fe3df2a55ec367dd72f027d.tar.gz
snap-byow-01b9417b87688b591fe3df2a55ec367dd72f027d.zip
Merge pull request #31 from jmoenig/master
Update CS10 Fork
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..e143245 100644
--- a/store.js
+++ b/store.js
@@ -61,7 +61,7 @@ SyntaxElementMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.store = '2014-February-13';
+modules.store = '2014-May-02';
// 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;
};