diff options
author | wout <wout@impinc.co.uk> | 2013-06-29 15:16:58 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-06-29 15:16:58 +0100 |
commit | e4fb8522a2c57069b2523f16de92d5eb7e6dd85e (patch) | |
tree | 003e0b4dcfd0ff4006e4d45a96b5b7600a0f9396 /src/element.js | |
parent | 9845c4952ab6011e1b8b70a24b7065c2e9c21b7a (diff) | |
download | svg.js-e4fb8522a2c57069b2523f16de92d5eb7e6dd85e.tar.gz svg.js-e4fb8522a2c57069b2523f16de92d5eb7e6dd85e.zip |
IMplemented <use> element, bumped to v0.23
Diffstat (limited to 'src/element.js')
-rw-r--r-- | src/element.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/element.js b/src/element.js index 60fbb39..3337df8 100644 --- a/src/element.js +++ b/src/element.js @@ -146,10 +146,6 @@ SVG.extend(SVG.Element, { return this.style(v) } else { - /* process gradient or pattern fill */ - if (typeof v.fill === 'function') - v = v.fill() - /* treat x differently on text elements */ if (a == 'x' && Array.isArray(this.lines)) for (n = this.lines.length - 1; n >= 0; n--) @@ -363,6 +359,10 @@ SVG.extend(SVG.Element, { , visible: function() { return this.style('display') != 'none' } + // Return id on string conversion +, toString: function() { + return this.attr('id') + } // Private: find svg parent by instance , _parent: function(parent) { var element = this |