Well, where to start:
Line 6-9 appear to be missing types. I know JS lets you get away with this, but don't let it.
Line 13, gos is presumably meant to be an array, so check if it's length is more than zero.
Line 15, what renderer?
Line 21, how can you compare a boolean to an array?
Line 45/50 == means "is equal to", it's a test, not an assignment.
↧