summaryrefslogtreecommitdiffstats
path: root/src/selector.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-10-26 22:56:32 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-10-26 22:56:32 +0100
commit48537ddd925fb28d4bc4b4188b14d316e51ce29f (patch)
tree7534cd120a278256960608a9e53b6cb77cf282ca /src/selector.js
parent81917ee7c714d0d7e3db4ec6471b734b62c63bfe (diff)
downloadsvg.js-48537ddd925fb28d4bc4b4188b14d316e51ce29f.tar.gz
svg.js-48537ddd925fb28d4bc4b4188b14d316e51ce29f.zip
add `parents()` method, added specs, fixed specs
Diffstat (limited to 'src/selector.js')
-rw-r--r--src/selector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selector.js b/src/selector.js
index ec6298a..fe87e4e 100644
--- a/src/selector.js
+++ b/src/selector.js
@@ -1,7 +1,7 @@
// Method for getting an element by id
SVG.get = function(id) {
var node = document.getElementById(idFromReference(id) || id)
- if (node) return SVG.adopt(node)
+ return SVG.adopt(node)
}
// Select elements by query string