mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Update SVGExport.js
This commit is contained in:
parent
60ddc68e56
commit
c5ced798e8
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ new function() {
|
||||||
if (onExport)
|
if (onExport)
|
||||||
node = onExport(item, node, options) || node;
|
node = onExport(item, node, options) || node;
|
||||||
var data = JSON.stringify(item._data);
|
var data = JSON.stringify(item._data);
|
||||||
if (data && data !== '{}')
|
if (data && data !== '{}' && data != 'null')
|
||||||
node.setAttribute('data-paper-data', data);
|
node.setAttribute('data-paper-data', data);
|
||||||
}
|
}
|
||||||
return node && applyStyle(item, node, isRoot);
|
return node && applyStyle(item, node, isRoot);
|
||||||
|
|
Loading…
Reference in a new issue