brianmhunt / knockout-fast-foreach

Foreach. Faster. For Knockout.
MIT License
59 stars 18 forks source link

Null check for empty data #51

Closed mattbarkerdev closed 6 years ago

mattbarkerdev commented 6 years ago

i have encountered errors whist using fastforeach with lists that may or may not contain nested children. With the this.data property being blank causing the loop to crash. This null check allows this to process only when required.

brianmhunt commented 6 years ago

Thanks for reporting. I'm ok with merging this in, but I don't have a release plan for this plugin right now since my efforts are focused on knockout/tko.

mattbarkerdev commented 6 years ago

No problem. Just happy to help!