Skip to content

Commit

Permalink
Merge pull request #29 from p3drosola/patch-1
Browse files Browse the repository at this point in the history
Remove TodoView.model
  • Loading branch information
addyosmani committed Mar 29, 2014
2 parents c748b0e + 76cded1 commit a1e900c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions js/todo-app.js
Expand Up @@ -168,11 +168,6 @@ class TodoView extends View {
// *... is a list tag.*
this.tagName = 'li';

// *The TodoView listens for changes to its model, re-rendering. Since there's
// a one-to-one correspondence between a **Todo** and a **TodoView** in this
// app, we set a direct reference on the model for convenience.*
this.model = Todo;

// *Cache the template function for a single item.*
this.template = _.template($('#item-template').html());

Expand Down

0 comments on commit a1e900c

Please sign in to comment.