summaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js8
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