aboutsummaryrefslogtreecommitdiffstats
path: root/src/pattern.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-01-22 17:54:28 +0100
committerwout <wout@impinc.co.uk>2013-01-22 17:54:28 +0100
commitb72373cf2fc024714825da95c59879ce9cbb4521 (patch)
tree1f3b260f9d2da54d1df7bca7b540bb15a0863e55 /src/pattern.js
parent6ae497706394d96b87e045afa8c7260790c4a7f1 (diff)
downloadsvg.js-b72373cf2fc024714825da95c59879ce9cbb4521.tar.gz
svg.js-b72373cf2fc024714825da95c59879ce9cbb4521.zip
Fix in offset for SVG.Wrap
Diffstat (limited to 'src/pattern.js')
-rw-r--r--src/pattern.js3
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