From 04d3a37b67606b6dcac3c4bc92c76849a0a4c683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Mo=CC=88nig?= Date: Thu, 8 Mar 2018 17:22:44 +0100 Subject: [PATCH] fixed #2052 --- gui.js | 11 +++++++---- history.txt | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gui.js b/gui.js index 542a9cc5..aa4ae94b 100644 --- a/gui.js +++ b/gui.js @@ -75,7 +75,7 @@ isRetinaSupported, SliderMorph, Animation, BoxMorph, MediaRecorder*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2018-March-05'; +modules.gui = '2018-March-08'; // Declarations @@ -3499,7 +3499,7 @@ IDE_Morph.prototype.aboutSnap = function () { module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn, world = this.world(); - aboutTxt = 'Snap! 4.1.2.3\nBuild Your Own Blocks\n\n' + aboutTxt = 'Snap! 4.1.2.4 - dev -\nBuild Your Own Blocks\n\n' + 'Copyright \u24B8 2018 Jens M\u00F6nig and ' + 'Brian Harvey\n' + 'jens@moenig.org, bh@cs.berkeley.edu\n\n' @@ -5608,8 +5608,11 @@ IDE_Morph.prototype.getURL = function (url, callback, responseType) { async = callback instanceof Function, myself = this, rsp; - request.responseType = responseType || 'text'; - rsp = (request.responseType === 'text') ? 'responseText' : 'response'; + if (async) { + request.responseType = responseType || 'text'; + } + rsp = (!async || request.responseType === 'text') ? 'responseText' + : 'response'; try { request.open('GET', url, async); if (async) { diff --git a/history.txt b/history.txt index fd5b1420..3e86336e 100755 --- a/history.txt +++ b/history.txt @@ -4014,3 +4014,4 @@ Translation Updates: 180308 ------ * Objects: fixed #2053 +* GUI: fixed #2052