From 9dad5314df266acb7418c96caa6fa77cb9bdcdbe Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Tue, 22 Apr 2014 17:05:14 -0700 Subject: fix set turbo mode block --- threads.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index 77632d0..ef83b46 100644 --- a/threads.js +++ b/threads.js @@ -1482,10 +1482,10 @@ Process.prototype.doSetFastTracking = function (bool) { if (this.homeContext.receiver) { ide = this.homeContext.receiver.parentThatIsA(IDE_Morph); if (ide) { - if (ide.stage.isFastTracked) { - ide.stopFastTracking(); - } else { + if (bool === true) { ide.startFastTracking(); + } else { + ide.stopFastTracking(); } } } -- cgit v1.3.1 From 826eb102c88ca4722a44fe1cc150ba16a30ef9a6 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Sun, 27 Apr 2014 12:46:57 -0700 Subject: style fix for bool --- threads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index ef83b46..ca6bcd2 100644 --- a/threads.js +++ b/threads.js @@ -1482,7 +1482,7 @@ Process.prototype.doSetFastTracking = function (bool) { if (this.homeContext.receiver) { ide = this.homeContext.receiver.parentThatIsA(IDE_Morph); if (ide) { - if (bool === true) { + if (bool) { ide.startFastTracking(); } else { ide.stopFastTracking(); -- cgit v1.3.1 From 5ab8b7e56357fd38fbc9d43a03033cb569de4a1c Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 30 Apr 2014 12:52:54 +0200 Subject: checkpoint --- blocks.js | 2 +- history.txt | 5 +++++ threads.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'threads.js') diff --git a/blocks.js b/blocks.js index f0ddd93..8e868f8 100644 --- a/blocks.js +++ b/blocks.js @@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2014-March-31'; +modules.blocks = '2014-April-30'; var SyntaxElementMorph; diff --git a/history.txt b/history.txt index 69b48bc..5fb2b40 100755 --- a/history.txt +++ b/history.txt @@ -2114,4 +2114,9 @@ ______ ------ * new Finnish translation, yay! Thanks, Jouni! * new Brazilian Portuguese translation, yay! Thanks, Aldo! +* Russian translation update +* Portuguese translation update +* additional localisations, thanks, Manuel! +* text-encoding fix for exporting variable contents, thanks, Blob! +* set turbo mode block fix, thanks, Michael and Nathan! * enable storage and retrieval of first-class costumes in both file formats diff --git a/threads.js b/threads.js index ca6bcd2..2d954a8 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2014-Feb-10'; +modules.threads = '2014-April-30'; var ThreadManager; var Process; -- 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 'threads.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 From 295de115a387d24ded700146203c07ba7c522d16 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 20 May 2014 09:34:37 +0200 Subject: Threads: new Variable data structure for refactoring upvar references, not yet used anywhere --- history.txt | 1 + threads.js | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'threads.js') diff --git a/history.txt b/history.txt index 960daf1..c49f5f8 100755 --- a/history.txt +++ b/history.txt @@ -2130,3 +2130,4 @@ ______ ------ * Morphic: Prevent default action for ctrl-/cmd-key event * Snap.html: Focus the world canvas on startup, so Snap reacts to keyboard events right away +* Threads: new Variable data structure, for refactoring upvar references, not yet used anywhere diff --git a/threads.js b/threads.js index b82a8c5..21147a3 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2014-May-02'; +modules.threads = '2014-May-20'; var ThreadManager; var Process; @@ -3110,6 +3110,20 @@ VariableFrame.prototype.allNames = function () { return answer; }; +// Variable ///////////////////////////////////////////////////////////////// + +function Variable(value) { + this.value = value; +} + +Variable.prototype.toString = function () { + return 'a Variable [' + this.value + ']'; +}; + +Variable.prototype.copy = function () { + return new Variable(this.value); +}; + // UpvarReference /////////////////////////////////////////////////////////// // ... quasi-inherits some features from VariableFrame -- cgit v1.3.1 From 9f690fbfa393c2bc73ac4a8a479ae089161a7556 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 5 Jun 2014 17:16:27 +0200 Subject: initialize new variables with zero (instead of null) --- history.txt | 1 + threads.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'threads.js') diff --git a/history.txt b/history.txt index 44160ca..53e6087 100755 --- a/history.txt +++ b/history.txt @@ -2153,3 +2153,4 @@ ______ 140605 ------ * Objects: stop replacing the empty string with the number zero in watchers +* Threads: initialize new variables with zero (instead of null) diff --git a/threads.js b/threads.js index 21147a3..d489441 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2014-May-20'; +modules.threads = '2014-Jun-05'; var ThreadManager; var Process; @@ -3054,7 +3054,7 @@ VariableFrame.prototype.getVar = function (name, upvars) { VariableFrame.prototype.addVar = function (name, value) { this.vars[name] = (value === 0 ? 0 : value === false ? false - : value === '' ? '' : value || null); + : value === '' ? '' : value || 0); }; VariableFrame.prototype.deleteVar = function (name) { -- cgit v1.3.1