fixed importing exported reporter-scripts (experimental feature)

pull/95/head
jmoenig 2021-02-01 17:16:40 +01:00
rodzic aea097b865
commit 0d60b1fc72
4 zmienionych plików z 12 dodań i 7 usunięć

Wyświetl plik

@ -13,6 +13,7 @@
* fixed a postMessage glitch in the API, thanks, Bernat!
* fixed a glitch in the Turkish translation that broke the "Looks" blocks category
* fixed a glitch that prevented the text cursor from displaying instantly in certain situations
* fixed importing exported reporter-scripts (experimental feature)
* **Translation Updates:**
* Tamil, thanks, Barthdry!
* German
@ -21,6 +22,7 @@
### 2021-01-02
* lists: refactored some matrix operations
* threads: made identity comparison of texts case-sensitive
* blocks, gui: fixed importing exported reporter-scripts (experimental feature)
### 2021-01-30
* threads, objects, lists: renamed experimental "rotate" primitive into "transpose"

Wyświetl plik

@ -8,10 +8,10 @@
<script src="src/morphic.js?version=2021-01-30"></script>
<script src="src/symbols.js?version=2020-10-07"></script>
<script src="src/widgets.js?version=2021-01-05"></script>
<script src="src/blocks.js?version=2020-12-22"></script>
<script src="src/blocks.js?version=2021-02-01"></script>
<script src="src/threads.js?version=2021-02-01"></script>
<script src="src/objects.js?version=2021-01-30"></script>
<script src="src/gui.js?version=2021-01-21"></script>
<script src="src/gui.js?version=2021-02-01"></script>
<script src="src/paint.js?version=2020-05-17"></script>
<script src="src/lists.js?version=2021-02-01"></script>
<script src="src/byob.js?version=2020-12-22"></script>

Wyświetl plik

@ -9,7 +9,7 @@
written by Jens Mönig
jens@moenig.org
Copyright (C) 2020 by Jens Mönig
Copyright (C) 2021 by Jens Mönig
This file is part of Snap!.
@ -158,7 +158,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/
// Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2020-December-22';
modules.blocks = '2021-February-01';
var SyntaxElementMorph;
var BlockMorph;
@ -3012,8 +3012,8 @@ BlockMorph.prototype.userMenu = function () {
}
if (ide) {
ide.saveXMLAs(
ide.serializer.serialize(this),
this.selector + ' script',
ide.serializer.serialize(top),
top.selector + ' script',
false);
}
},

Wyświetl plik

@ -78,7 +78,7 @@ Animation, BoxMorph, BlockEditorMorph, BlockDialogMorph, Note, ZERO, BLACK*/
// Global stuff ////////////////////////////////////////////////////////
modules.gui = '2021-January-21';
modules.gui = '2021-February-01';
// Declarations
@ -2284,6 +2284,9 @@ IDE_Morph.prototype.droppedText = function (aString, name, fileType) {
if (aString.indexOf('<media') === 0) {
return this.openMediaString(aString);
}
if (aString.indexOf('<block') === 0) {
aString = '<script>' + aString + '</script>';
}
if (aString.indexOf('<script') === 0) {
return this.openScriptString(aString);
}