aboutsummaryrefslogtreecommitdiffstats
path: root/src/clip.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/clip.js')
-rw-r--r--src/clip.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/clip.js b/src/clip.js
index 6d820df..ab7bebf 100644
--- a/src/clip.js
+++ b/src/clip.js
@@ -1,12 +1,9 @@
-// initialize id sequence
-var clipID = 0;
-
SVG.Clip = function Clip() {
this.constructor.call(this, SVG.create('clipPath'));
// set unique id
- this.id = 'svgjs_clip_' + (clipID++);
+ this.id = 'svgjs_' + (SVG.did++);
this.attr('id', this.id);
};