aboutsummaryrefslogtreecommitdiffstats
path: root/src/gradient.js
diff options
context:
space:
mode:
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 b9007ef..b9533cb 100644
--- a/src/gradient.js
+++ b/src/gradient.js
@@ -1,12 +1,9 @@
-// initialize id sequence
-var gradID = 0;
-
SVG.Gradient = function Gradient(t) {
this.constructor.call(this, SVG.create(t + 'Gradient'));
// set unique id
- this.id = 'svgjs_grad_' + (gradID++);
+ this.id = 'svgjs_' + (SVG.did++);
this.attr('id', this.id);
// store type