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 audionerd

If you use the excellent impact-tween lib, and get a Firefox error saying 'invalid decrement operand', after you bake your code, here's a fix:

https://github.com/nefD/impact-tween/pull/1

The deeper issue is, jsmin expects that you've passed jslint before you minify. bake.php has no such requirement. So, you could run into subtle cases where the input is running fine, but the output introduces odd bugs.

And you won't know you have an error until you test in Firefox, which yells at you when it tries to parse your code. WebKit will ignore the error until you try to run it.

See also the "Caution" here http://www.crockford.com/javascript/jsmin.html

1 decade ago by audionerd

Just realized this bug (and fix) was already found in an earlier post:

http://impactjs.com/forums/games/toad-labs
Page 1 of 1
« first « previous next › last »