I'm having this
ServerInfoModel = Backbone.RelationalModel.extend({
relations: [
{
type: Backbone.HasMany,
key: 'data',
relatedModel: 'Data',
collectionType: 'DataCollection',
reverseRelation: {
key: 'id',
includeInJSON: 'id'
}
}
]
})
Data = Backbone.RelationalModel.extend({
});
DataCollection = Backbone.Collection.extend({
model: Data
});
Now I have a view Associated with ServerInfoModel. If I change a value from model Data within that collection, "change" is not triggered on ServerInfoModel, is triggered only on DataCollection;
How can I pass the "change" event to ServerInfoModel from DataCollection ?