There's really no reason to use "new" over something that is not a proper constructor (as in, something with prototype-based properties, most commonly methods). What you're putting together here is more akin to a single object, a singleton of sort, if you will.

In general, new function() {…} looks like an anti-pattern to me. There's really no reason for it.

Best,

Christophe Porteneuve

_______________________________________________
JSMentors mailing list
[email protected]
http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com

Reply via email to