From e9fa07a7b33b8f19c0690b0fc3df2f57a404d224 Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 27 Feb 2013 20:36:17 +0100 Subject: Bumped to v0.7 with reworked id sequence, attr nullifier, and various other fixes --- src/pattern.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/pattern.js') diff --git a/src/pattern.js b/src/pattern.js index 82a2339..7343d6a 100644 --- a/src/pattern.js +++ b/src/pattern.js @@ -1,8 +1,5 @@ SVG.Pattern = function(type) { this.constructor.call(this, SVG.create('pattern')) - - /* set unique id */ - this.attr('id', (this.id = 'svgjs_element_' + (SVG.did++))) } // Inherit from SVG.Container @@ -12,7 +9,7 @@ SVG.Pattern.prototype = new SVG.Container SVG.extend(SVG.Pattern, { // Return the fill id fill: function() { - return 'url(#' + this.id + ')' + return 'url(#' + this.attr('id') + ')' } }) -- cgit v1.2.3