summaryrefslogtreecommitdiffstats
path: root/src/pattern.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/pattern.js')
-rwxr-xr-xsrc/pattern.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pattern.js b/src/pattern.js
index e5398d2..76190ef 100755
--- a/src/pattern.js
+++ b/src/pattern.js
@@ -9,7 +9,7 @@ SVG.Pattern = SVG.invent({
, extend: {
// Return the fill id
fill: function() {
- return 'url(#' + this.attr('id') + ')'
+ return 'url(#' + this.id() + ')'
}
// Update pattern by rebuilding
, update: function(block) {