Permalink
Browse files

Fix Body::eachArbiter.

  • Loading branch information...
1 parent d2d57c7 commit 713a06138d32a682fbc8f2c642102be00856d061 @nornagon nornagon committed Feb 25, 2012
Showing with 6 additions and 6 deletions.
  1. +3 −3 cp.js
  2. +2 −2 cp.min.js
  3. +1 −1 lib/cpBody.js
View
6 cp.js
@@ -172,8 +172,8 @@ var recenterPoly = cp.recenterPoly = function(verts)
var centroid = centroidForPoly(verts);
for(var i=0; i<verts.length; i+=2){
- verts[i] -= centroid.x;
- verts[i+1] -= centroid.y;
+ verts[i] -= centroid.x;
+ verts[i+1] -= centroid.y;
}
};
@@ -1608,7 +1608,7 @@ Body.prototype.eachArbiter = function(func)
{
var arb = this.arbiterList;
while(arb){
- var next = arb.next(body);
+ var next = arb.next(this);
arb.swappedColl = (this === arb.body_b);
func(arb);
View
4 cp.min.js
2 additions, 2 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
2 lib/cpBody.js
@@ -332,7 +332,7 @@ Body.prototype.eachArbiter = function(func)
{
var arb = this.arbiterList;
while(arb){
- var next = arb.next(body);
+ var next = arb.next(this);
arb.swappedColl = (this === arb.body_b);
func(arb);

0 comments on commit 713a061

Please sign in to comment.