This is clearly an error, that you would catch with a good test, but you should also get used to running `ant jsHint` before each submit to catch any errors like this.  You can also check the `Problems` tab in Eclipse, which has the same thing most of the time.