Deferred prototype construction

Allowing prototype construction to be deferred until the object is actually created can help resolving dependencies as well as improve efficiency by lazily creating prototypes.

However, the obvious approach (the one I have used in xbObject previously), throws errors. It appears that the approach of replacing the entire prototype of the child class during construction just doesn't make sense..


do example 4 (Does not work - Will throw errors!)