The firebase documentation here (https://github.com/firebase/backfire#backbonefirebasecollection) mentions that you can apply a limit to a Backbone.Firebase.Collection:
var Messages = Backbone.Firebase.Collection.extend({
firebase: new Firebase("https://<your-firebase>.firebaseio.com").limit(10)
});
I would like to make that limit a variable - so I could sometimes show 10 records from the collection and sometimes 100 (as an example).
Can anyone recommend the best way to achieve this?