I have the following view:
Observation class extends Backbone.Model
class Observations extends Backbone.Collection model: Observation constructor: -> @url = _observationsUrl class ObservationsView extends Backbone.View el: $('#observations') initialize: -> _.bindAll @ @model.bind 'changed', @render @model.view = @ that = @ @model.fetch { success: -> alert('success') that.model.trigger 'changed' } render: => alert('rendering baby') class ObservationsController extends Backbone.Controller initialize: -> observations = new Observations() observationsView = new ObservationsView(model: observations)
I bind the event with the modified model to the ObservationsView rendering method. The model is a basic collection.
Fetching fails, but the modified event does not fire. I am trying to disable manual shutdown.
Can anyone see what I'm doing wrong?
source share