metafizzy / fizzy-ui-utils

UI utilities & helpers
46 stars 14 forks source link

`getParent()`: Handle nodes not in `document.body` #9

Closed jakewisse closed 7 years ago

jakewisse commented 7 years ago

When the reference node passed to getParent() is not in the body and the search is unsuccessful, undefined should still be returned.

desandro commented 7 years ago

Nice work! Merged 🌈🐻

If you like stickers, email me yo@metafizzy.co so I can send some your way

stickers-v2

jakewisse commented 7 years ago

Thanks! Glad to help :)