Skip to content

Commit

Permalink
Add document.query as a shorthand for document.querySelector
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Feb 12, 2024
1 parent 975e533 commit 56e06e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plutoscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class Element
end
document = {
query = |x| -> new Element(x),
querySelector = |x| -> new Element(x),
getElementById = |x| -> new Element("#"..x),
}`);
Expand Down

0 comments on commit 56e06e4

Please sign in to comment.