jquery.initialize
jquery.initialize copied to clipboard
Refactor find/match algorithm
While investigating #42, I noticed that our find
/match
algorithm could be improved by using closest
.
For example:
const element = addedNode.closest(selector)
|| addedNode.querySelector(selector);