Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by dmen

I tried running the minified game.main.js file through Google's Closure compiler and it won't compile - I get two errors about the same thing - they are like so:

JSC_TRAILING_COMMA: Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrectly. If you are targeting newer versions of JS, set the appropriate language_in option. at line 108 character 140
...e strict";ig.System=ig.Class.extend({fps:30,width:320,height:240,realWidth...

Make sense to anyone?

1 decade ago by vincentpiel

it might be this :


var someObject = {    a : 1, b:2, c :3          ,       }

you forgot a ',' at the end of an object/extend/settings/...

which is ok with most browser, but is 'bad' some browser/tools.

if you can JSLint your project, those kind of 'errors' will show up.
Page 1 of 1
« first « previous next › last »