aboutsummaryrefslogtreecommitdiffstats
path: root/src/gradient.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/gradient.js')
-rwxr-xr-xsrc/gradient.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gradient.js b/src/gradient.js
index 895f8ca..56c1376 100755
--- a/src/gradient.js
+++ b/src/gradient.js
@@ -47,7 +47,7 @@ SVG.Gradient = SVG.invent({
}
// Return the fill id
, fill: function() {
- return 'url(#' + this.attr('id') + ')'
+ return 'url(#' + this.id() + ')'
}
// Alias string convertion to fill
, toString: function() {