aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/core/selector.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2019-01-14 13:10:38 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2019-01-14 13:10:38 +0100
commit92b48d2da14a4870c348c50443a2e22d015c3828 (patch)
tree0972ed3174ee8ec05bd61e479d347b9bec2f1d56 /src/modules/core/selector.js
parentaec779cb019b5ad1c2ea709d9bf8e93d3d1e0c87 (diff)
downloadsvg.js-92b48d2da14a4870c348c50443a2e22d015c3828.tar.gz
svg.js-92b48d2da14a4870c348c50443a2e22d015c3828.zip
fixed `root()`, `textPath()`, `text.path()` and `path.text()` and removed font-family and size from the defaults list3.0.10
Diffstat (limited to 'src/modules/core/selector.js')
-rw-r--r--src/modules/core/selector.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/core/selector.js b/src/modules/core/selector.js
index 24841c5..1667d4d 100644
--- a/src/modules/core/selector.js
+++ b/src/modules/core/selector.js
@@ -13,3 +13,7 @@ export default function baseFind (query, parent) {
export function find (query) {
return baseFind(query, this.node)
}
+
+export function findOne (query) {
+ return adopt(this.node.querySelector(query))
+}