> And why can't you call the superconstructor at the end? > It'd work the exact same except it could overwrite some of the > properties you wrote... but since those things would more likely be in > prototype, it's not much of an issue.
That is definitely a possibility! It does have one drawback, though: Normally methods in sub-instances expect the super-instance to be completely initialized. So performing the super-initialization last is a bit more risky than performing it first. -- Dr. Axel Rauschmayer a...@rauschma.de home: rauschma.de twitter: twitter.com/rauschma blog: 2ality.com
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss