summaryrefslogtreecommitdiffstats
path: root/src/pattern.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/pattern.js')
-rw-r--r--src/pattern.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pattern.js b/src/pattern.js
index dc57e77..4807049 100644
--- a/src/pattern.js
+++ b/src/pattern.js
@@ -11,6 +11,10 @@ SVG.extend(SVG.Pattern, {
fill: function() {
return 'url(#' + this.attr('id') + ')'
}
+ // Alias string convertion to fill
+, toString: function() {
+ return this.fill()
+ }
})