summaryrefslogtreecommitdiffstats
path: root/src/set.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/set.js')
-rw-r--r--src/set.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/set.js b/src/set.js
index fe71237..4c42efc 100644
--- a/src/set.js
+++ b/src/set.js
@@ -12,9 +12,12 @@ SVG.SetFX = function(set) {
//
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