summaryrefslogtreecommitdiffstats
path: root/src/gradient.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-06-29 15:16:58 +0100
committerwout <wout@impinc.co.uk>2013-06-29 15:16:58 +0100
commite4fb8522a2c57069b2523f16de92d5eb7e6dd85e (patch)
tree003e0b4dcfd0ff4006e4d45a96b5b7600a0f9396 /src/gradient.js
parent9845c4952ab6011e1b8b70a24b7065c2e9c21b7a (diff)
downloadsvg.js-e4fb8522a2c57069b2523f16de92d5eb7e6dd85e.tar.gz
svg.js-e4fb8522a2c57069b2523f16de92d5eb7e6dd85e.zip
IMplemented <use> element, bumped to v0.23
Diffstat (limited to 'src/gradient.js')
-rw-r--r--src/gradient.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gradient.js b/src/gradient.js
index 2f6e30a..c5c51d1 100644
--- a/src/gradient.js
+++ b/src/gradient.js
@@ -46,6 +46,10 @@ SVG.extend(SVG.Gradient, {
, fill: function() {
return 'url(#' + this.attr('id') + ')'
}
+ // Alias string convertion to fill
+, toString: function() {
+ return this.fill()
+ }
})