diff options
author | wout <wout@impinc.co.uk> | 2012-12-31 12:21:45 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-31 12:21:45 +0100 |
commit | 9f622f7b160fb977a4354eb0f775d4b53a2f7443 (patch) | |
tree | 120ab0acc0e073b89a9f68594c36d8a1501bdc20 /src/gradient.js | |
parent | 7d3e4c43a64cdb9ce19b71d8dc1783c0bc031d91 (diff) | |
download | svg.js-9f622f7b160fb977a4354eb0f775d4b53a2f7443.tar.gz svg.js-9f622f7b160fb977a4354eb0f775d4b53a2f7443.zip |
Added mask.js
Diffstat (limited to 'src/gradient.js')
-rw-r--r-- | src/gradient.js | 5 |
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 |