Your Javascript Constructor Logic May Break Prototypal Inheritance
Updated: 2011-04-28 16:09:00
Yesterday, I was playing around with extending the EventEmitter class in Node.js when it suddenly occurred to me that I didn't know enough about the implementation of the EventEmitter constructor. It might seem strange to worry about the constructor mechanics, as the implementation of the constructor is supposed to be encapsulated; but, my fear was due to t ... ead More raquo;