Closed developitz closed 9 years ago
See #21. A minifier will remove these commas anyways and even without them the script won't work in a ES3 browser due to [].forEach
.
But if those minor changes make it possible to use the Google Closure Compiler (as the one from #21 pointed out), why keep them?
No, sorry. I don't support ES3-only browsers and tools. The code is in ES5.
I don't know why CC chooses to be outdated by default, but if you add --language=ECMASCRIPT5
it will work.
@AnBauer as to why keep them:
I think it'd be better if CC updated their defaults to make it a non-issue. I've filed a bug: https://code.google.com/p/closure-compiler/issues/detail?id=1318
I have removed the unneeded commas at the end of lists to make it es3 compliant in jshint.