Fix: Removed added textarea from YPR module

No more text area in upper left corner of the Snap! IDE when converting
a .ypr project
pull/3/merge
jmoenig 2013-04-03 10:09:11 +02:00
rodzic 895ab6ddeb
commit 4804d8cfc8
2 zmienionych plików z 10 dodań i 4 usunięć

Wyświetl plik

@ -1574,3 +1574,7 @@ ______
* 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
130403
------
* YPR converter fix: No more text area in upper left corner of the Snap! IDE

8
ypr.js
Wyświetl plik

@ -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('');
};