kdrnic / box2dweb

Automatically exported from code.google.com/p/box2dweb
0 stars 1 forks source link

Don't work with prototype.js #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Insert prototype.js in demo.html:

<script type="text/javascript" src="Box2dWeb-2.1a.2.js"></script>
<script type="text/javascript" 
src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js"></scr
ipt>

And got this error:

Uncaught TypeError: Cannot read property 'lowerBound' of undefined
b2AABB.TestOverlapBox2dWeb-2.1a.2.js:865
b2DynamicTree.QueryBox2dWeb-2.1a.2.js:2285
b2DynamicTreeBroadPhase.UpdatePairsBox2dWeb-2.1a.2.js:2511
b2ContactManager.FindNewContactsBox2dWeb-2.1a.2.js:6137
b2World.StepBox2dWeb-2.1a.2.js:6949
update

Chrome/FF4.0.

Original issue reported on code.google.com by nix.n...@gmail.com on 28 Mar 2011 at 11:55

GoogleCodeExporter commented 9 years ago
Replace for (* in *) to for (var i=0;..) and works for me.

Original comment by nix.n...@gmail.com on 28 Mar 2011 at 12:16

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for contributing. I will fix this within the next few days.

Original comment by Uli.He...@googlemail.com on 29 Mar 2011 at 6:50

GoogleCodeExporter commented 9 years ago

Original comment by Uli.He...@googlemail.com on 30 Mar 2011 at 2:10

GoogleCodeExporter commented 9 years ago

Original comment by Uli.He...@googlemail.com on 30 Mar 2011 at 3:17

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r24.

Original comment by `` on 30 Mar 2011 at 3:20