diff options
Diffstat (limited to 'src/mask.js')
-rw-r--r-- | src/mask.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mask.js b/src/mask.js index b5baa14..e7e94a4 100644 --- a/src/mask.js +++ b/src/mask.js @@ -2,8 +2,7 @@ SVG.Mask = function Mask() { this.constructor.call(this, SVG.create('mask')); /* set unique id */ - this.id = 'svgjs_' + (SVG.did++); - this.attr('id', this.id); + this.attr('id', (this.id = 'svgjs_element_' + (SVG.did++))); }; // Inherit from SVG.Element |