diff options
| author | Jens Mönig <jens@moenig.org> | 2015-05-18 12:23:57 +0200 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2015-05-18 12:23:57 +0200 |
| commit | 6b19caf75d5ea26c1eef93edbe21d7c45bd97742 (patch) | |
| tree | 31515b15d90f004d68455d751acd2251e4891dc6 | |
| parent | 8e92c65cae699004342092133b0a7f99a6f1ed5c (diff) | |
| download | snap-6b19caf75d5ea26c1eef93edbe21d7c45bd97742.tar.gz snap-6b19caf75d5ea26c1eef93edbe21d7c45bd97742.zip | |
Fix encoding for exported sprites (esp. comments)
| -rw-r--r-- | gui.js | 6 | ||||
| -rwxr-xr-x | history.txt | 6 | ||||
| -rw-r--r-- | objects.js | 4 |
3 files changed, 12 insertions, 4 deletions
@@ -69,7 +69,7 @@ SpeechBubbleMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2015-May-01'; +modules.gui = '2015-May-18'; // Declarations @@ -2964,7 +2964,9 @@ IDE_Morph.prototype.exportGlobalBlocks = function () { }; IDE_Morph.prototype.exportSprite = function (sprite) { - var str = this.serializer.serialize(sprite.allParts()); + var str = encodeURIComponent( + this.serializer.serialize(sprite.allParts()) + ); window.open('data:text/xml,<sprites app="' + this.serializer.app + '" version="' diff --git a/history.txt b/history.txt index 107e796..ab5c6c3 100755 --- a/history.txt +++ b/history.txt @@ -2497,3 +2497,9 @@ ______ * Threads: return empty string when querying first letter of a list * GUI: hide “save to disk” option behind shift-click again (has issues in Chrome) * GUI: parameters for embedding projects in iFrames, thanks, Bernat! + +=== Release v4.0 === + +150518 +------ +* Objects, GUI: Fix encoding for exported sprites (esp. comments) @@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.objects = '2015-April-15'; +modules.objects = '2015-May-18'; var SpriteMorph; var StageMorph; @@ -2677,7 +2677,7 @@ SpriteMorph.prototype.userMenu = function () { }; SpriteMorph.prototype.exportSprite = function () { - if (this.isCoone) {return; } + if (this.isClone) {return; } var ide = this.parentThatIsA(IDE_Morph); if (ide) { ide.exportSprite(this); |
