Commit c3dfa36e authored by Richard Harrington's avatar Richard Harrington

fixed loss of context for 'this' keyword when AppView instance method addAll...

fixed loss of context for 'this' keyword when AppView instance method addAll calls AppView instance method addOne (in the backbone app).
parent b77fe6b9
......@@ -212,7 +212,7 @@ $(function(){
// Add all items in the **Todos** collection at once.
addAll: function() {
Todos.each(this.addOne);
Todos.each(this.addOne, this);
},
// Generate the attributes for a new Todo item.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment