diff --git a/authors.md b/authors.md index 3b3b236..3d152cd 100644 --- a/authors.md +++ b/authors.md @@ -34,6 +34,7 @@ The following people are totally rad and awesome because they have contributed r * Mike Moore *mike@blowmage.com* * Peter Hellberg *peter@c7.se* * Jamie Gaskins *jgaskins@gmail.com* +* Sami Pussinen *me@samipussinen.com* * ...You! What are you waiting for? Check out the [contributing]({{ site.baseurl }}/contributing) section and get cracking! # Designers diff --git a/chapters/classes_and_objects/chaining.md b/chapters/classes_and_objects/chaining.md index be19212..d8d099e 100644 --- a/chapters/classes_and_objects/chaining.md +++ b/chapters/classes_and_objects/chaining.md @@ -66,9 +66,9 @@ class TeaCup cream: false addChainedAttributeAccessor(this, 'properties', attr) for attr of @properties -earlgrey = new TeaCup().size('small').type('Earl Grey').sugar('false') +earlgrey = new TeaCup().size('small').type('Earl Grey').sugar(false) -earlgrey.properties # => { size: 'small', type: 'Earl Grey', sugar: false } +earlgrey.properties # => { size: 'small', type: 'Earl Grey', sugar: false, cream: false } earlgrey.sugar true