summaryrefslogtreecommitdiff
path: root/byob.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-07-01 17:43:21 +0200
committerGubolin <gubolin@fantasymail.de>2015-07-01 17:43:21 +0200
commita3cae8db6e442da230a880a26546595afee7a3bd (patch)
treef9a2b3473e65885e1804e2b46f75f883efe1e365 /byob.js
parentb0d5fca03273d74c009c1415285c0ec375e1f848 (diff)
parent44e4f5d94bc6e448beb46e5d688153c8203d6da8 (diff)
downloadsnap-a3cae8db6e442da230a880a26546595afee7a3bd.tar.gz
snap-a3cae8db6e442da230a880a26546595afee7a3bd.zip
Merge branch 'OOP' into development
Diffstat (limited to 'byob.js')
-rw-r--r--byob.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/byob.js b/byob.js
index bc0f75f..1c2cfee 100644
--- a/byob.js
+++ b/byob.js
@@ -106,7 +106,7 @@ SymbolMorph, isNil*/
// Global stuff ////////////////////////////////////////////////////////
-modules.byob = '2015-May-01';
+modules.byob = '2015-May-23';
// Declarations
@@ -3297,15 +3297,17 @@ BlockExportDialogMorph.prototype.selectNone = function () {
// BlockExportDialogMorph ops
BlockExportDialogMorph.prototype.exportBlocks = function () {
- var str = this.serializer.serialize(this.blocks);
+ var str = encodeURIComponent(
+ this.serializer.serialize(this.blocks)
+ );
if (this.blocks.length > 0) {
- window.open(encodeURI('data:text/xml,<blocks app="'
+ window.open('data:text/xml,<blocks app="'
+ this.serializer.app
+ '" version="'
+ this.serializer.version
+ '">'
+ str
- + '</blocks>'));
+ + '</blocks>');
} else {
new DialogBoxMorph().inform(
'Export blocks',