TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
A JavaScript Constructor Problem, and Three Solutions
7 points
by
_mayo
almost 11 years ago
1 comment
facorreia
almost 11 years ago
I like this thorough explanation.<p>In my code, I mostly avoid this issue by relying on jshint's "newcap" option to detect when a constructor function is called without the new keyword.