News for hackers. Stuff that matters.
Re:Extending the Revealing Module Pattern – Why is this a ba... by doomslice on Saturday April 13, 2013 @02:03PM (#5544009)
I don't really see the need for the extend at all. In fact if you don't use it, it will work the same as example 1 and you'll still have access to self.

Or you can just do this.foo = foo; this.value = value; at the end instead of returning an Object.

Re:Extending the Revealing Module Pattern – Why is this a ba... by platz on Saturday April 13, 2013 @02:34PM (#5544119)
Yes extend is unnecessary in this case. The key was saving a reference to self.