I have a little problem with my backbone collection. I just want to display 6 models, and always the latest 6. I use CollectionBinder (Backbone.ModelBinder) to render and display my collections and I use RailsFayeSubscriber to sync them with the server.
The problem is that I don't know how to always keep the collection 6 models big. I have tried adding a this.on("add") and there using .first(6) to keep the 6 models I want to have, but the problem is that I think either CollectionBinder or RailsFayeSubscriber also has add-trigger and throws me errors about missing models in the collection.
The best thing would be to have something like comparator, that always sorts the model, but in this case some sort of active filter that always keeps it 6 models big.
Any ideas?