Skip to content

Commit

Permalink
fixed default names for 'script variables' block
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoenig committed Jul 25, 2019
1 parent 2e5f914 commit 1401075
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
8 changes: 8 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
* **Notable Fixes:**
* **Translation Updates:**

## v5.0.8
* **Notable Fix:**
* fixed default names for 'script variables' block

### 2019-07-25
* blocks: fixed default names for 'script variables' block
* prepared maintenance release

## v5.0.7
* **Notable Fix:**
* fixed #2041
Expand Down
6 changes: 3 additions & 3 deletions snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Snap! Build Your Own Blocks 5.0.7</title>
<title>Snap! Build Your Own Blocks 5.0.8</title>
<link rel="shortcut icon" href="src/favicon.ico">
<script type="text/javascript" src="src/morphic.js?version=2019-07-23"></script>
<script type="text/javascript" src="src/widgets.js?version=2019-06-27"></script>
<script type="text/javascript" src="src/blocks.js?version=2019-07-22"></script>
<script type="text/javascript" src="src/blocks.js?version=2019-07-25"></script>
<script type="text/javascript" src="src/threads.js?version=2019-07-15"></script>
<script type="text/javascript" src="src/objects.js?version=2019-07-15"></script>
<script type="text/javascript" src="src/gui.js?version=2019-07-24"></script>
<script type="text/javascript" src="src/gui.js?version=2019-07-25"></script>
<script type="text/javascript" src="src/paint.js?version=2019-06-27"></script>
<script type="text/javascript" src="src/lists.js?version=2019-07-01"></script>
<script type="text/javascript" src="src/byob.js?version=2019-07-24"></script>
Expand Down
6 changes: 5 additions & 1 deletion src/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/

// Global stuff ////////////////////////////////////////////////////////

modules.blocks = '2019-July-22';
modules.blocks = '2019-July-25';

var SyntaxElementMorph;
var BlockMorph;
Expand Down Expand Up @@ -11023,6 +11023,10 @@ MultiArgMorph.prototype.addInput = function (contents) {
this.elementSpec === '%blockVars') {
name = '';
i = idx;
if (this.elementSpec === '%scriptVars') {
// compensate for missing label element
i += 1;
}
while (i > 0) {
name = String.fromCharCode(97 + (i - 1) % 26) + name;
i = Math.floor((i - 1) / 26);
Expand Down
4 changes: 2 additions & 2 deletions src/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ isRetinaSupported, SliderMorph, Animation, BoxMorph, MediaRecorder*/

// Global stuff ////////////////////////////////////////////////////////

modules.gui = '2019-July-24';
modules.gui = '2019-July-25';

// Declarations

Expand Down Expand Up @@ -3595,7 +3595,7 @@ IDE_Morph.prototype.aboutSnap = function () {
module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn,
world = this.world();

aboutTxt = 'Snap! 5.0.7\nBuild Your Own Blocks\n\n'
aboutTxt = 'Snap! 5.0.8\nBuild Your Own Blocks\n\n'
+ 'Copyright \u24B8 2019 Jens M\u00F6nig and '
+ 'Brian Harvey\n'
+ 'jens@moenig.org, bh@cs.berkeley.edu\n\n'
Expand Down

0 comments on commit 1401075

Please sign in to comment.