Skip to content

Commit

Permalink
Changed first view in memory management example to use on rather than…
Browse files Browse the repository at this point in the history
… listenTo to make it consistent with discussion text.
  • Loading branch information
Marc Friedman authored and David Amend committed Mar 29, 2013
1 parent 0d2024e commit eb74d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/06-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ var ZombieView = Backbone.View.extend({
initialize: function(){

// bind the model change to re-render this view
this.listenTo(this.model, 'change', this.render);
this.model.on('change', this.render, this);

},

Expand Down

0 comments on commit eb74d2b

Please sign in to comment.