diff options
Diffstat (limited to 'src/pattern.js')
-rw-r--r-- | src/pattern.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pattern.js b/src/pattern.js index 80985c8..9b37297 100644 --- a/src/pattern.js +++ b/src/pattern.js @@ -2,8 +2,7 @@ SVG.Pattern = function Pattern(type) { this.constructor.call(this, SVG.create('pattern')); /* 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 |