diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-08-02 18:44:48 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-08-02 18:44:48 +0200 |
commit | 86c99607a393b43aeb50979e97ab69853293847f (patch) | |
tree | ea7daa70947062326e8eea3c0c31cc09da4c88bd /src/text.js | |
parent | 90f8ac60071148d41c209fd0114df1dc1f40e8d8 (diff) | |
download | svg.js-86c99607a393b43aeb50979e97ab69853293847f.tar.gz svg.js-86c99607a393b43aeb50979e97ab69853293847f.zip |
fixed #514 and #5162.3.3
- removed `SVG.Text.clone()` which is inherited by `SVG.Element.clone()`
- make element visible when call bbox on a clone
Diffstat (limited to 'src/text.js')
-rw-r--r-- | src/text.js | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/text.js b/src/text.js index 6dd4dee..7438cff 100644 --- a/src/text.js +++ b/src/text.js @@ -16,17 +16,8 @@ SVG.Text = SVG.invent({ // Add class methods , extend: { - clone: function(){ - // clone element and assign new id - var clone = assignNewId(this.node.cloneNode(true)) - - // insert the clone after myself - this.after(clone) - - return clone - } // Move over x-axis - , x: function(x) { + x: function(x) { // act as getter if (x == null) return this.attr('x') |