Mar
23
This one is fairly self-explanatory, so I’m not going to waste too much time on it.
In short, your switch statements really ought to have a ‘case’ statement. Otherwise they are really just pointless, empty blocks. Take the following:
var x = 0;
switch(x){
default:
break;
}
It’s hardly surprising that JSLint is going to complain about this.
The ‘why’ here should be obvious. Clearly you have some redundant code that should be removed or have omitted a chunk for functionality.
A Guide To JSLint Messages
This article is one of a series on the error and warning messages produced by JSLint.
[...] [...]