Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just because you don't understand the JavaScript this, doesn't mean it's broken. It behaves exactly the same way every time you use it... It refers to the object that called the function (unless, of course you or someone else overrode it).


just because I say 'this' is broken, it doesn't mean I don't understand how it works.

'this' in JS is misleading and confusing - IMHO it's broken design




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: