From c5ced798e815e19ccb7ab6d2db420cfa1825f901 Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 13 Feb 2015 11:59:05 +0100 Subject: [PATCH] Update SVGExport.js --- src/svg/SVGExport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg/SVGExport.js b/src/svg/SVGExport.js index 1aed2571..9ac38788 100644 --- a/src/svg/SVGExport.js +++ b/src/svg/SVGExport.js @@ -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);