Commit 97cec2dc authored by Addy Osmani's avatar Addy Osmani

Merge pull request #194 from richardharrington/backbone

fixed a loss of context for 'this' keyword in backbone app
parents b77fe6b9 c3dfa36e
...@@ -212,7 +212,7 @@ $(function(){ ...@@ -212,7 +212,7 @@ $(function(){
// Add all items in the **Todos** collection at once. // Add all items in the **Todos** collection at once.
addAll: function() { addAll: function() {
Todos.each(this.addOne); Todos.each(this.addOne, this);
}, },
// Generate the attributes for a new Todo item. // 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