2 ms·
I think this guy got it all wrong. He complains that strict mode warns on `if(document.body.childNodes[10] == e.target)` if it can't resolve `childNodes[10]` f
by viraptor 18y ago
I think this guy got it all wrong.
He complains that strict mode warns on `if(document.body.childNodes[10] == e.target)` if it can't resolve `childNodes[10]` for example. But it should! One can check the number of elements before trying to get the 10'th one. Same with other comparisons: he wants to do `e.xxx == this`, but strict mode warns, because it might not exist. Well - that's what `if (e.xxx)` is for.
He mentions the only thing that might be useful is not implemented - warning when using a variable from a parent scope... except doing that is perfectly normal and valid. His whole argument seems to be a complete mistake.