PgaPlayersApp.AppView = Backbone.View.extend({ el: '#pga_players_profile_app', initialize: function() { //Should I do 1? this.listenTo(PgaPlayersApp.Players, 'sync', this.addAll); //Should I do 2? this.listenTo(PgaPlayersApp.Players, 'reset', this.addAll); PgaPlayersApp.Players.fetch({reset: true}); } });
In the above code example, what is the preferred listening method for a collection? (sync or reset)
source share