Chipmunk-js icon indicating copy to clipboard operation
Chipmunk-js copied to clipboard

Bug in Node js

Open deniswhite8 opened this issue 10 years ago • 2 comments

If space don't have static objects, in 2565 lines in cp.js file if(this.root) subtreeQuery(this.root, bb, func); this - global node js object, and it have root property. And the condition is true, although this don't cp.BBTree. Additional check on the this instanceof cp.BBTree solves the problem.

deniswhite8 avatar May 31 '14 21:05 deniswhite8

https://github.com/josephg/Chipmunk-js/pull/34

Maybe this can help you.

appcrash avatar Nov 16 '15 13:11 appcrash

Thanks to appcrash that works fine with me

c-zhuo avatar Nov 17 '17 03:11 c-zhuo