I know that some people consider having a leading underscore to imply that the variable is “private”, that such confidentiality is fictitious, and suggests that this is why JSLint reports these names with an error message.
I use Google Analytics on the website that I create. I refer to GA variables such as "_gaq."
I am trying to get my JS code to be 100% JSLint clean (I am not religious about the coding style, and it will go with Mr. Crockford's lawyer). However, I cannot do anything with Google variable names ... therefore, I think I cannot get 100% "clean".
I post here if I misunderstood the message and can do something to comply with JSLint practices.
javascript jslint
Zhami Jun 14 '10 at 17:55 2010-06-14 17:55
source share