From 51e17d2ce9368c3546b7e27809dfbd187cefb246 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 30 Apr 2014 12:18:06 +0200 Subject: enable storage of first-class costumes --- store.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'store.js') 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; }; -- cgit v1.3.1 From f9989ad7cfa5e27b4784d8cd464fdc7cbe289942 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 2 May 2014 11:08:30 +0200 Subject: checkpoint - release --- blocks.js | 2 +- lang-ru.js | 3 ++- locale.js | 2 +- paint.js | 2 +- store.js | 2 +- threads.js | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) (limited to 'store.js') diff --git a/blocks.js b/blocks.js index 8e868f8..69ae610 100644 --- a/blocks.js +++ b/blocks.js @@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2014-April-30'; +modules.blocks = '2014-May-02'; var SyntaxElementMorph; diff --git a/lang-ru.js b/lang-ru.js index 4834f7c..f113f2c 100644 --- a/lang-ru.js +++ b/lang-ru.js @@ -168,7 +168,8 @@ SnapTranslator.dict.ru = { Special characters: (see ) €, Š \u00c4, \u00e4 -…, š \u00d6, \u00f6 + +, š \u00d6, \u00f6 †, Ÿ \u00dc, \u00fc § \u00df */ diff --git a/locale.js b/locale.js index c6924e9..d981960 100644 --- a/locale.js +++ b/locale.js @@ -42,7 +42,7 @@ /*global modules, contains*/ -modules.locale = '2014-April-30'; +modules.locale = '2014-May-02'; // Global stuff diff --git a/paint.js b/paint.js index 44c988b..ee40b23 100644 --- a/paint.js +++ b/paint.js @@ -66,7 +66,7 @@ // Global stuff //////////////////////////////////////////////////////// -modules.paint = '2014-April-30'; +modules.paint = '2014-May-02'; // Declarations diff --git a/store.js b/store.js index d69667a..e143245 100644 --- a/store.js +++ b/store.js @@ -61,7 +61,7 @@ SyntaxElementMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.store = '2014-April-30'; +modules.store = '2014-May-02'; // XML_Serializer /////////////////////////////////////////////////////// diff --git a/threads.js b/threads.js index 2d954a8..b82a8c5 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2014-April-30'; +modules.threads = '2014-May-02'; var ThreadManager; var Process; -- cgit v1.3.1