News for hackers. Stuff that matters.
Re:An Introduction to JavaScript's "this" by jmtulloss on Sunday September 27, 2009 @05:12AM (#846707)
I absolutely agree. I tried to put "fixing" in quotes as much as possible. However, you have to see that for many programmers, it is unexpected behavior. In the eyes of many UI specialists, unexpected behavior is the definition of a quirk. JS fanatics have to be accepting of the fact that JS is not a regular language that follows "regular" rules.
Re:An Introduction to JavaScript's "this" by axod on Sunday September 27, 2009 @07:13AM (#846756)
Sure, I agree... And if you go in #javascript on freenode for a few minutes, you'll see endless questions about why their event handler doesn't work. Endless answers "use a closure".

I just wish people would read a book on the language first, then the behavior would be pretty obvious and expected.