josephg / Chipmunk-js

Port of slembcke/Chipmunk-Physics to Javascript
http://dl.dropbox.com/u/2494815/demo/Joints.html
536 stars 59 forks source link

Arbiter not passed to postSolve callback #18

Closed robwalch closed 11 years ago

robwalch commented 11 years ago

This bug was introduced in some recent optimizations. JSHint warns 'arg' is being used out of scope. It used to be defined in the for loop that calls postSolve handlers. That was removed without replacing both instances it is used in. It is still defined farther up in another loop - different context - hence oos instead of not defined. :recycle:

nornagon commented 11 years ago

Good catch, thanks!