summaryrefslogtreecommitdiffstats
path: root/src/pattern.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-02-27 20:36:17 +0100
committerwout <wout@impinc.co.uk>2013-02-27 20:36:17 +0100
commite9fa07a7b33b8f19c0690b0fc3df2f57a404d224 (patch)
treefe7af0f65d7a0b4b1177a225e3ac885c62fa4bca /src/pattern.js
parent968406ea2f45e756f081268370703c522a929cfb (diff)
downloadsvg.js-e9fa07a7b33b8f19c0690b0fc3df2f57a404d224.tar.gz
svg.js-e9fa07a7b33b8f19c0690b0fc3df2f57a404d224.zip
Bumped to v0.7 with reworked id sequence, attr nullifier, and various other fixes
Diffstat (limited to 'src/pattern.js')
-rw-r--r--src/pattern.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pattern.js b/src/pattern.js
index 82a2339..7343d6a 100644
--- a/src/pattern.js
+++ b/src/pattern.js
@@ -1,8 +1,5 @@
SVG.Pattern = function(type) {
this.constructor.call(this, SVG.create('pattern'))
-
- /* set unique id */
- this.attr('id', (this.id = 'svgjs_element_' + (SVG.did++)))
}
// Inherit from SVG.Container
@@ -12,7 +9,7 @@ SVG.Pattern.prototype = new SVG.Container
SVG.extend(SVG.Pattern, {
// Return the fill id
fill: function() {
- return 'url(#' + this.id + ')'
+ return 'url(#' + this.attr('id') + ')'
}
})