Hello,
there is overridden collection fetch function.
fetch: function() {
var collection = this;
$.getJSON(this.url, function(data) {
// do some processing to data here
collection.reset(data);
});
},
I need to do processing when I get data, so thats why overrride. But the thing - is - the models change event is not triggered, here ,so models do not see and do not render.
I could call proably render method in the getJSON callback but its not they way it should be I guess. How to make here model change event?