diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-07 22:42:38 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-07 22:42:38 +0100 |
commit | dec70426b32ccf3979046e1637174b66bfdd1a8d (patch) | |
tree | 0f64a1803294f55f04d6f4a281845fcd3d1b151a /src/elements | |
parent | 9c3f0e89c9c4d4d999f3b54032202e187ab4ac1c (diff) | |
download | svg.js-dec70426b32ccf3979046e1637174b66bfdd1a8d.tar.gz svg.js-dec70426b32ccf3979046e1637174b66bfdd1a8d.zip |
clone() does not insert the clone into the dom anymore, added beziere() and steps() to generate easing functions
Diffstat (limited to 'src/elements')
-rw-r--r-- | src/elements/Dom.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/elements/Dom.js b/src/elements/Dom.js index 16aefd8..e31c15c 100644 --- a/src/elements/Dom.js +++ b/src/elements/Dom.js @@ -56,19 +56,12 @@ export default class Dom extends EventTarget { } // Clone element - clone (parent) { + clone () { // write dom data to the dom so the clone can pickup the data this.writeDataToDom() // clone element and assign new id - let clone = assignNewId(this.node.cloneNode(true)) - - // insert the clone in the given parent or after myself - if (parent) parent.add(clone) - // FIXME: after might not be available here - else this.after(clone) - - return clone + return assignNewId(this.node.cloneNode(true)) } // Iterates over all children and invokes a given block |