doodads/doodads — Issue #3: Give easy access to doodad class from within prototype.
Author: thegrandpoobah
Created: 2012-01-27 23:26:35+00:00
State: open

The builder does not give easy access to the final constructed doodad class from *within* the doodad itself. That is, to access constructs like statics and defaultOptions, there is basically no way to do without introducing a temp variable in closure scope. To simplify this a bit, add a second argument to the setup().inherits() function that references the underlying class type.