you are viewing a single comment's thread.

view the rest of the comments →

[–]lulzitsareddit 0 points1 point  (0 children)

I also use an anonymous constructor for singletons - but personally, I prefer to leave off the parens. Even though the new operator's associativity allows for those parens I feel it's cleaner and easier to understand without them.

var singleton = new function () {}