I have a collection view with the followig code:
class FoosCollectionView extends Backbone.View
el: '#foos'
initialize: ->
@collection = new FoosCollection [],
barId: @options.barId
foozId: @options.foozId
@listenTo @collection, 'sync', @render
@collection.fetch()
template: MyApp.Templates.foos
render: (event)->
$(@el).html @template @collection
@
FoosCollectionView
Before Backbone 1.0.0 a reset
event was triggered when fetch
on a collection completed. Now the sync
event is triggered, but I dont know if this is due to a bug or if it is new standard behaviour.
Can anyone tell me, why reset
is not triggered anymore?
Regards Felix