Some type class hackery to make our $ and $$ methods NOT default to Nothing
when trying to do something like $("#some_id").parentNode. You'd think this
would work:
def $[T <: Node](selector: String): T = ???
$("#some_id").parentNode
But it doesn't:
Error: "value parentNode is not a member of Nothing"
Some type class hackery to make our $ and $$ methods NOT default to Nothing when trying to do something like $("#some_id").parentNode. You'd think this would work:
def $[T <: Node](selector: String): T = ??? $("#some_id").parentNode
But it doesn't:
Error: "value parentNode is not a member of Nothing"