aboutsummaryrefslogtreecommitdiffstats
path: root/src/gradient.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/gradient.js')
-rw-r--r--src/gradient.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gradient.js b/src/gradient.js
index a16c092..7ba7dd7 100644
--- a/src/gradient.js
+++ b/src/gradient.js
@@ -26,7 +26,7 @@ SVG.Gradient = SVG.invent({
}
// Return the fill id
, fill: function() {
- return 'url(#' + this.id() + ')'
+ return url(this)
}
// Alias string convertion to fill
, toString: function() {