diff options
Diffstat (limited to 'src/gradient.js')
-rw-r--r-- | src/gradient.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gradient.js b/src/gradient.js index 0414d72..6554c92 100644 --- a/src/gradient.js +++ b/src/gradient.js @@ -2,8 +2,7 @@ SVG.Gradient = function Gradient(type) { this.constructor.call(this, SVG.create(type + 'Gradient')); /* set unique id */ - this.id = 'svgjs_' + (SVG.did++); - this.attr('id', this.id); + this.attr('id', (this.id = 'svgjs_element_' + (SVG.did++))); /* store type */ this.type = type; |