Skip to content

Commit

Permalink
me(document) is allowed. Version bump to 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gnat authored Aug 25, 2024
1 parent 9391c0c commit 7205600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions surreal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Welcome to Surreal 1.3.1
// Welcome to Surreal 1.3.2
// Documentation: https://github.com/gnat/surreal
// Locality of Behavior (LoB): https://htmx.org/essays/locality-of-behaviour/
let surreal = (function () {
Expand Down Expand Up @@ -217,7 +217,7 @@ let $ = { // Convenience for internals.
},
// ⚙️ Used internally. Is this an element / node?
isNode(e) {
return (e instanceof HTMLElement || e instanceof SVGElement) ? true : false
return (e instanceof HTMLElement || e instanceof SVGElement || e instanceof Document) ? true : false
},
// ⚙️ Used internally by DOM functions. Is this a list of elements / nodes?
isNodeList(e) {
Expand Down

0 comments on commit 7205600

Please sign in to comment.