Clear project before importing new SVG content.

This commit is contained in:
Jürg Lehni 2014-09-27 22:59:45 +02:00
parent df190b6a47
commit 0d7fe5e5a0

View file

@ -12,6 +12,7 @@
for (var i = 0; i < files.length; i++) { for (var i = 0; i < files.length; i++) {
var file = files[i]; var file = files[i];
if (file.type.match('svg')) { if (file.type.match('svg')) {
project.clear();
project.importSVG(file, function(item) { project.importSVG(file, function(item) {
console.log(item); console.log(item);
}); });