Permalink
Browse files

small corrections to snack.create doc example

  • Loading branch information...
1 parent 4415106 commit e9779dac09c91b0dfa7441c55563caebf8221a88 @eddmann eddmann committed Sep 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/index.html
View
4 docs/index.html
@@ -398,7 +398,7 @@ <h2 id=snack.create><a href="#snack.create">snack.create</a></h2>
sum: function (){
var sum = 0
- snack.each(this.coords, function(key, value){
+ snack.each(this.coords, function(value, key){
sum += value
})
return sum
@@ -414,7 +414,7 @@ <h2 id=snack.create><a href="#snack.create">snack.create</a></h2>
// 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
}
})

0 comments on commit e9779da

Please sign in to comment.