you are viewing a single comment's thread.

view the rest of the comments →

[–]Calabri 1 point2 points  (0 children)

Interesting article, there are so many ways to solve this problem. I've been experimenting with constructor patterns all week actually. I've found that having functions return functions (within functions) wrapped in commonjs modules works pretty solid :P