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

@ -1573,4 +1573,8 @@ ______
* sharing / unsharing projects support and GUI * sharing / unsharing projects support and GUI
* the Block Editor now allows anchored comments * the Block Editor now allows anchored comments
* duplicating a block / script / sprite now also duplicates anchored comments * duplicating a block / script / sprite now also duplicates anchored comments
* deleting a block / script now also deletes 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. 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) { var sb = (function (sb) {
@ -1429,9 +1431,9 @@ var sb = (function (sb) {
n('blocks', {}, nsCustomBlocks(project.stage.customBlocks, true)) n('blocks', {}, nsCustomBlocks(project.stage.customBlocks, true))
]); ]);
xml.toXML(out = []); xml.toXML(out = []);
var d = document.createElement('textarea'); // var d = document.createElement('textarea');
d.style.position = 'absolute'; // d.style.position = 'absolute';
document.body.appendChild(d).value = out.join(''); // document.body.appendChild(d).value = out.join('');
return out.join(''); return out.join('');
}; };