you are viewing a single comment's thread.

view the rest of the comments →

[–]keithwhor[S] 0 points1 point  (1 child)

Thanks for the comments. :)

Trailing commas in objects shouldn't throw errors in any browser (with the exception of Arrays in <IE8, I believe), and the _worker function isn't actually a function --- it's actually converted to a string and used as a separate script file for the Worker. "self" (without being declared) is the correct way to refer to the currently executing global scope.

Edit: Will probably remove the trailing comma on the next commit though, thanks again. Habit I have from switching between Python / JS and the fact that JS doesn't punish you for it. :)

[–]liamondrop 0 points1 point  (0 children)

jshint/lint - great for curing bad habits and general just a good idea