Merge pull request #639 from iconexperience/master

Fix for #638 SVG export creates 'data-paper-data="null"' attribute if item._data is null
This commit is contained in:
Jürg Lehni 2015-02-28 18:33:53 +01:00
commit 2002c4a3af

View file

@ -387,7 +387,7 @@ new function() {
if (onExport)
node = onExport(item, node, options) || node;
var data = JSON.stringify(item._data);
if (data && data !== '{}')
if (data && data !== '{}' && data !== 'null')
node.setAttribute('data-paper-data', data);
}
return node && applyStyle(item, node, isRoot);