aboutsummaryrefslogtreecommitdiffstats
path: root/src/gradient.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/gradient.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/gradient.js')
-rw-r--r--src/gradient.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gradient.js b/src/gradient.js
index f3ba85c..73975c5 100644
--- a/src/gradient.js
+++ b/src/gradient.js
@@ -1,9 +1,6 @@
SVG.Gradient = function(type) {
this.constructor.call(this, SVG.create(type + 'Gradient'))
- /* set unique id */
- this.attr('id', (this.id = 'svgjs_element_' + (SVG.did++)))
-
/* store type */
this.type = type
}
@@ -48,7 +45,7 @@ SVG.extend(SVG.Gradient, {
},
// Return the fill id
fill: function() {
- return 'url(#' + this.id + ')'
+ return 'url(#' + this.attr('id') + ')'
}
})