Skip to content

Commit

Permalink
small corrections to snack.create doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
eddmann committed Sep 21, 2011
1 parent 4415106 commit e9779da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ <h3>Examples</h3>

sum: function (){
var sum = 0
snack.each(this.coords, function(key, value){
snack.each(this.coords, function(value, key){
sum += value
})
return sum
Expand All @@ -414,7 +414,7 @@ <h3>Examples</h3>
// if a method exists in the prototype object
// then the method here is automatically punched
// providing the old method as the first argument
old()
old(x, y)
this.coords.z += z
}
})
Expand Down

0 comments on commit e9779da

Please sign in to comment.