|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
300 bytes
|
| Line | |
|---|
| 1 | import array from "./array.js";
|
|---|
| 2 | import {Selection, root} from "./selection/index.js";
|
|---|
| 3 |
|
|---|
| 4 | export default function(selector) {
|
|---|
| 5 | return typeof selector === "string"
|
|---|
| 6 | ? new Selection([document.querySelectorAll(selector)], [document.documentElement])
|
|---|
| 7 | : new Selection([array(selector)], root);
|
|---|
| 8 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.