Skip to content
Browse files

Recompiled

  • Loading branch information...
1 parent b0c634c commit 91c33c38709534f640740423871c15f9a6c279e2 @josephg committed
Showing with 5 additions and 5 deletions.
  1. +4 −4 cp.js
  2. +1 −1 cp.min.js
View
8 cp.js
@@ -207,9 +207,9 @@ var momentForBox = cp.momentForBox = function(m, width, height)
var momentForBox2 = cp.momentForBox2 = function(m, box)
{
- width = box.r - box.l;
- height = box.t - box.b;
- offset = vmult([box.l + box.r, box.b + box.t], 0.5);
+ var width = box.r - box.l;
+ var height = box.t - box.b;
+ var offset = vmult([box.l + box.r, box.b + box.t], 0.5);
// TODO NaN when offset is 0 and m is INFINITY
return momentForBox(m, width, height) + m*vlengthsq(offset);
@@ -1570,7 +1570,7 @@ var Body = cp.Body = function(m, i) {
// I wonder if this should use the constructor style like Body...
var createStaticBody = function()
{
- body = new Body(Infinity, Infinity);
+ var body = new Body(Infinity, Infinity);
body.nodeIdleTime = Infinity;
return body;
View
2 cp.min.js
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.

0 comments on commit 91c33c3

Please sign in to comment.
Something went wrong with that request. Please try again.