xeolabs/scenejs-pycollada — Issue #9: Uncaught SyntaxError: Unexpected token ,
Author: dejvik
Created: 2012-03-01 20:57:01+00:00
State: open

Hi,
I converted my file with this command:
```python scenejs-pycollada.py -o js duck.dae```
If I try to load the JavaScript file into the web browser, console prints an error:
```Uncaught SyntaxError: Unexpected token ,```
Problem is caused by unbalanced number of curly brackets. I have to manually change the end of the generated file from:
```
],
);
```
to
```
]}
);
```
[Web page with the error](http://www.fi.muni.cz/~xhracho1/pycollada_issues/duck_syntax_error.html) and [without the error](http://www.fi.muni.cz/~xhracho1/pycollada_issues/duck.html), [the COLLADA file](http://www.fi.muni.cz/~xhracho1/pycollada_issues/duck_without_lights.dae)
scenejs-pycollada commit *da7a2c0937b696ac41d9f43dfe1e3018d3a9e0c2* Tue Nov 15 17:19:29 2011 +0200
pycollada commit *4bc5bb51820ddab8363b807daa7f4feb1aa9c746* Wed Jun 8 19:08:19 2011 -0400
They should be the latest versions.