7
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});
    }
});

上記のコード例で、コレクションのフェッチをリッスンするための推奨される方法は何ですか? (同期またはリセット)

4

1 に答える 1