mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Clear project before importing new SVG content.
This commit is contained in:
parent
df190b6a47
commit
0d7fe5e5a0
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
for (var i = 0; i < files.length; i++) {
|
||||
var file = files[i];
|
||||
if (file.type.match('svg')) {
|
||||
project.clear();
|
||||
project.importSVG(file, function(item) {
|
||||
console.log(item);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue