diff options
| author | Jens Mönig <jens@moenig.org> | 2015-05-18 12:31:28 +0200 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2015-05-18 12:31:28 +0200 |
| commit | 9ce4b2e1b68fa6c05b66b412f6fb5adb25c78382 (patch) | |
| tree | 92c919b0b82780a1198320a6a4b97fa1e210b1c9 | |
| parent | 83628bc0aca42c078a96b0a6fbb2675cf6cae5c3 (diff) | |
| download | snap-9ce4b2e1b68fa6c05b66b412f6fb5adb25c78382.tar.gz snap-9ce4b2e1b68fa6c05b66b412f6fb5adb25c78382.zip | |
Fix encoding for exported sprites (esp. comments)
| -rw-r--r-- | gui.js | 6 | ||||
| -rwxr-xr-x | history.txt | 4 | ||||
| -rw-r--r-- | objects.js | 4 |
3 files changed, 10 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 7f60776..33d3a82 100755 --- a/history.txt +++ b/history.txt @@ -2510,3 +2510,7 @@ ______ * 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! + +150518 +------ +* Objects, GUI: Fix encoding for exported sprites (esp. comments) @@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.objects = '2015-April-17'; +modules.objects = '2015-May-18'; var SpriteMorph; var StageMorph; @@ -2726,7 +2726,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); |
