From 4804d8cfc82ecaad3e0906090994f6e804243b01 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 3 Apr 2013 10:09:11 +0200 Subject: Fix: Removed added textarea from YPR module No more text area in upper left corner of the Snap! IDE when converting a .ypr project --- history.txt | 6 +++++- ypr.js | 8 +++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/history.txt b/history.txt index c380a29..44dc921 100755 --- a/history.txt +++ b/history.txt @@ -1573,4 +1573,8 @@ ______ * sharing / unsharing projects support and GUI * the Block Editor now allows anchored comments * duplicating a block / script / sprite now also duplicates anchored comments -* deleting a block / script now also deletes anchored comments \ No newline at end of file +* deleting a block / script now also deletes anchored comments + +130403 +------ +* YPR converter fix: No more text area in upper left corner of the Snap! IDE \ No newline at end of file diff --git a/ypr.js b/ypr.js index bf1ed9c..3f5f570 100644 --- a/ypr.js +++ b/ypr.js @@ -8,6 +8,8 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +Last changed 2013-04-03 by Jens Moenig (disabled text area overlay) + */ var sb = (function (sb) { @@ -1429,9 +1431,9 @@ var sb = (function (sb) { n('blocks', {}, nsCustomBlocks(project.stage.customBlocks, true)) ]); xml.toXML(out = []); - var d = document.createElement('textarea'); - d.style.position = 'absolute'; - document.body.appendChild(d).value = out.join(''); + // var d = document.createElement('textarea'); + // d.style.position = 'absolute'; + // document.body.appendChild(d).value = out.join(''); return out.join(''); }; -- cgit v1.3.1