4 ms·
Suggestion: allow passing in target as a DOMElement, rather than by id. That makes this more useful when template rendering in done off-DOM, or when IDs aren't
by niceguyneil 13y ago
Suggestion: allow passing in target as a DOMElement, rather than by id. That makes this more useful when template rendering in done off-DOM, or when IDs aren't used.
- zackbloom 13y agoIf it's an object treat it as a dom node, if it's a string, run it through document.querySelector.