Permalink
Browse files

fix an implied global and a mispeling

  • Loading branch information...
1 parent a419725 commit 3a5ca6360fcbf8eafdb9dad2fe11adb767c60102 @polgfred polgfred committed Sep 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 todo/todo.js
View
@@ -31,7 +31,7 @@ $.Model('Todo',{
*/
findAll: function(params , success){
this.localStore(function(todos){
- instances = [];
+ var instances = [];
for(var id in todos){
instances.push( new this( todos[id]) )
}
@@ -57,7 +57,7 @@ $.Model('Todo',{
* Todo.destroyAll(1, success())
*/
destroy: function(id, success){
- this.destroyAll([id], successs)
+ this.destroyAll([id], success)
},
/**
* Creates a todo with the provided attrs. This allows:

0 comments on commit 3a5ca63

Please sign in to comment.