aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/core/selector.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/core/selector.js')
-rw-r--r--src/modules/core/selector.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/modules/core/selector.js b/src/modules/core/selector.js
index 1667d4d..7dec4e4 100644
--- a/src/modules/core/selector.js
+++ b/src/modules/core/selector.js
@@ -3,17 +3,19 @@ import { globals } from '../../utils/window.js'
import { map } from '../../utils/utils.js'
import List from '../../types/List.js'
-export default function baseFind (query, parent) {
- return new List(map((parent || globals.document).querySelectorAll(query), function (node) {
- return adopt(node)
- }))
+export default function baseFind(query, parent) {
+ return new List(
+ map((parent || globals.document).querySelectorAll(query), function (node) {
+ return adopt(node)
+ })
+ )
}
// Scoped find method
-export function find (query) {
+export function find(query) {
return baseFind(query, this.node)
}
-export function findOne (query) {
+export function findOne(query) {
return adopt(this.node.querySelector(query))
}