diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-01-21 17:40:13 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-01-21 17:40:13 +0100 |
commit | d17bab6bcccc8319b8b4c96db0def8926e93152d (patch) | |
tree | 408d6718f013499f86d7a4e4d0432122aef8cad8 /src/element.js | |
parent | ee027f30ffad52bdf0dbf3389cdc9c526118faf6 (diff) | |
download | svg.js-d17bab6bcccc8319b8b4c96db0def8926e93152d.tar.gz svg.js-d17bab6bcccc8319b8b4c96db0def8926e93152d.zip |
fixed `svgjs:data` attribute which was not set properly in all browsers (#428)
added specs for `writeDataToDom()` and `setData()`
added toJSON in SVG.Number
Diffstat (limited to 'src/element.js')
-rw-r--r-- | src/element.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/element.js b/src/element.js index bd5d08d..090459f 100644 --- a/src/element.js +++ b/src/element.js @@ -247,7 +247,7 @@ SVG.Element = SVG.invent({ this.node.removeAttribute('svgjs:data') if(Object.keys(this.dom).length) - this.node.setAttributeNS(SVG.svgjs, 'svgjs:data', JSON.stringify(this.dom)) + this.node.setAttribute('svgjs:data', JSON.stringify(this.dom)) // see #428 return this } |