Option to prevent backbone from adding new models to a collection (update only)

Prevents upcoming/calendar from blowing up when
This commit is contained in:
Mark McDowall 2013-11-30 11:40:44 -08:00
parent 517b318b75
commit 9142d1b188
4 changed files with 12 additions and 9 deletions

View file

@ -16,7 +16,7 @@ define(
return Marionette.ItemView.extend({
initialize: function () {
this.collection = new CalendarCollection().bindSignalR();
this.collection = new CalendarCollection().bindSignalR({ updateOnly: true });
this.listenTo(this.collection, 'change', this._reloadCalendarEvents);
},
render : function () {