coffeescript-cookbook / coffeescript-cookbook.github.io

CoffeeScript Recipes, Examples and Tutorials
https://coffeescript-cookbook.github.io
Other
562 stars 178 forks source link

fix mixin example code #116

Closed ccwang002 closed 9 years ago

ccwang002 commented 10 years ago

Previous example does not run as expected. Looping over array using by -1 will not actually loop over the array, which throws an undefine that has no prototype thus the code will fail.

Also parentheses around mixOf are needed otherwise DepperThought will extends DeepThought only.