I remember jslint (in specific configuration) complaining about it, as it is assignment, but possibly could be just an programmer's mistake (missing '=' which would make it a comparison).