chore: Update __Query class to accept both string and Element types for selector
This commit is contained in:
parent
bd6999745d
commit
197b155280
2 changed files with 62 additions and 62 deletions
120
data/bindata.go
120
data/bindata.go
File diff suppressed because one or more lines are too long
|
|
@ -14,12 +14,12 @@ function $Store(elm) {
|
|||
return new __sui_store(elm);
|
||||
}
|
||||
|
||||
function $Query(selector: string): __Query {
|
||||
function $Query(selector: string | Element): __Query {
|
||||
return new __Query(selector);
|
||||
}
|
||||
|
||||
class __Query {
|
||||
selector: string | Element = "";
|
||||
selector: string | Element | undefined = "";
|
||||
elements: NodeListOf<Element> | null = null;
|
||||
element: Element | null = null;
|
||||
constructor(selector: string | Element) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue