diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-09 12:30:02 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-09 12:30:02 +0100 |
commit | 1bcabca97d56f2f8cd94010f1284c4eb2cc2cb8a (patch) | |
tree | 290051c5d3144e42386235c501e9b6579cbe5e49 /dist/svg.js | |
parent | 9479d18674745cbf4bfb44e0fdbb0eab3c5bfe06 (diff) | |
download | svg.js-1bcabca97d56f2f8cd94010f1284c4eb2cc2cb8a.tar.gz svg.js-1bcabca97d56f2f8cd94010f1284c4eb2cc2cb8a.zip |
fixed a bug with clone which didnt copy over dom data (#621)
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/svg.js b/dist/svg.js index d8125b9..92dee8c 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -6,7 +6,7 @@ * @copyright Wout Fierens <wout@mick-wout.com> * @license MIT * -* BUILT: Thu Mar 09 2017 10:06:40 GMT+0100 (Mitteleuropäische Zeit) +* BUILT: Thu Mar 09 2017 12:29:50 GMT+0100 (Mitteleuropäische Zeit) */; (function(root, factory) { if (typeof define === 'function' && define.amd) { @@ -1075,7 +1075,10 @@ SVG.Element = SVG.invent({ .height(new SVG.Number(p.height)) } // Clone element - , clone: function(parent) { + , clone: function(parent, withData) { + // write dom data to the dom so the clone can pickup the data + this.writeDataToDom() + // clone element and assign new id var clone = assignNewId(this.node.cloneNode(true)) |