diff options
author | wout <wout@impinc.co.uk> | 2013-07-01 21:05:39 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-07-01 21:05:39 +0100 |
commit | 84c4a52c439fc85d5046ea1ebad226e458faf20c (patch) | |
tree | a2030bb303a751b0293cc5819e376ca03da12e4f /dist/svg.js | |
parent | 4a6da20fd312d5ea1d3f98f1bcb3b0763a66870a (diff) | |
download | svg.js-84c4a52c439fc85d5046ea1ebad226e458faf20c.tar.gz svg.js-84c4a52c439fc85d5046ea1ebad226e458faf20c.zip |
Sets accept multiple elements at once
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dist/svg.js b/dist/svg.js index 1dd635b..c41f8dc 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -1,4 +1,4 @@ -/* svg.js v0.24 - svg regex default color number viewbox bbox rbox element container fx event defs group arrange mask clip gradient use doc shape rect ellipse line poly path plotable image text nested sugar set - svgjs.com/license */ +/* svg.js v0.24-1-g4a6da20 - svg regex default color number viewbox bbox rbox element container fx event defs group arrange mask clip gradient use doc shape rect ellipse line poly path plotable image text nested sugar set - svgjs.com/license */ ;(function() { this.SVG = function(element) { @@ -2425,9 +2425,12 @@ // SVG.extend(SVG.Set, { // Add element to set - add: function(element) { - this.members.push(element) + add: function() { + var i, il, elements = [].slice.call(arguments) + for (i = 0, il = elements.length; i < il; i++) + this.members.push(elements[i]) + return this } // Remove element from set |