Pages.Pages = Backbone.Collection.extend({ model: Pages.Page, url: 'pages.json', initialize: function(models, options) { this.on('reset', this.updateCurrent, this); }, setCurrent: function(id) { this.currentId = id; this.updateCurrent(); }, updateCurrent: function() { this.current = this.get(this.currentId); } });