diff options
Diffstat (limited to 'src/selector.js')
-rw-r--r-- | src/selector.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/selector.js b/src/selector.js index 82aca37..ec6298a 100644 --- a/src/selector.js +++ b/src/selector.js @@ -6,9 +6,11 @@ SVG.get = function(id) { // Select elements by query string SVG.select = function(query, parent) { - return SVG.utils.map((parent || document).querySelectorAll(query), function(node) { - return SVG.adopt(node) - }) + return new SVG.Set( + SVG.utils.map((parent || document).querySelectorAll(query), function(node) { + return SVG.adopt(node) + }) + ) } SVG.extend(SVG.Parent, { |