choojs / choo-devtools

💼 - Expose a choo instance on the window
MIT License
53 stars 17 forks source link

.render and .morph aren't always present #23

Closed toddself closed 6 years ago

toddself commented 6 years ago

This fixes data access issues when the render and morph objects aren't available during the timing calls.

Why they're missing is a great question (and one I'm looking into now) but this solves the TypeError that gets thrown for now.

toddself commented 6 years ago

@ungoldman got a better fix at choojs/choo-hooks#4. But this bit of protection might be a good idea regardless

yoshuawuyts commented 6 years ago

v2.3.3 :tada: