tcorral/Design-Patterns-in-Javascript — Issue #4: strategy\4\duck.js
Author: GarethElms
Created: 2011-10-20 09:26:52+00:00
State: open

A minor observation. In strategy\4\Duck.js. The setFlyBehavior() and set QuackBehavior() aren't called anywhere and also don't do what their names suggest. They can probably just be removed as you set the behaviours directly but I can see how such methods could be useful when the classes become more complex

Fabulous work by the way this is helping me take my js learning to the next level thanks.