From e4fb8522a2c57069b2523f16de92d5eb7e6dd85e Mon Sep 17 00:00:00 2001 From: wout Date: Sat, 29 Jun 2013 15:16:58 +0100 Subject: IMplemented element, bumped to v0.23 --- src/gradient.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gradient.js') 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() + } }) -- cgit v1.2.3