fixed #2145 - newlines in block labels conflict with input declarations

upd4.2
jmoenig 2018-07-12 09:19:43 +02:00
rodzic dca7edcab4
commit 4abefec605
3 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/
// Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2018-June-08';
modules.blocks = '2018-July-12';
var SyntaxElementMorph;
var BlockMorph;
@ -2312,7 +2312,7 @@ BlockMorph.prototype.setSpec = function (spec, silently, definition) {
this.add(this.placeHolder());
}
this.parseSpec(spec).forEach(function (word) {
if (word[0] === '%') {
if (word[0] === '%' && (word !== '%br')) {
inputIdx += 1;
}
part = myself.labelPart(word);

Wyświetl plik

@ -4271,6 +4271,7 @@ Translation Updates:
* Threads: fixed outer script variable scope for TELL/ASK and OF
* Tools: fixed JOIN WORDS and LIST -> SENTENCE
180711
180712
------
* Threads: tweaked outer script variable scope for TELL/ASK and OF
* Blocks: fixed #2145 - newlines in block labels conflict with input declarations

Wyświetl plik

@ -6,8 +6,8 @@
<link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="morphic.js?version=2018-06-21"></script>
<script type="text/javascript" src="widgets.js?version=2018-06-21"></script>
<script type="text/javascript" src="blocks.js?version=2018-06-21"></script>
<script type="text/javascript" src="threads.js?version=2018-07-11"></script>
<script type="text/javascript" src="blocks.js?version=2018-07-12"></script>
<script type="text/javascript" src="threads.js?version=2018-07-12"></script>
<script type="text/javascript" src="objects.js?version=2018-07-06"></script>
<script type="text/javascript" src="gui.js?version=2018-07-11"></script>
<script type="text/javascript" src="paint.js?version=2018-06-21"></script>