summaryrefslogtreecommitdiffstats
path: root/src/clip.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-31 12:21:45 +0100
committerwout <wout@impinc.co.uk>2012-12-31 12:21:45 +0100
commit9f622f7b160fb977a4354eb0f775d4b53a2f7443 (patch)
tree120ab0acc0e073b89a9f68594c36d8a1501bdc20 /src/clip.js
parent7d3e4c43a64cdb9ce19b71d8dc1783c0bc031d91 (diff)
downloadsvg.js-9f622f7b160fb977a4354eb0f775d4b53a2f7443.tar.gz
svg.js-9f622f7b160fb977a4354eb0f775d4b53a2f7443.zip
Added mask.js
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);
};