I have a function server side that returns a JSON object that Webix loads into a list with a template. Sometimes the JSON object contains just an empty [{}]. This shows up in the list as undefined in each place in the template.
I thought I might filter this out on the browser side following http://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object. See the the snippet below.
http://webix.com/snippet/5ae342d0
However, this doesn’t work. Can you suggest a working approach to filter out this case? The function works as intended otherwise. Thanks.