Skip to content

Commit

Permalink
Recompiled
Browse files Browse the repository at this point in the history
  • Loading branch information
josephg committed Feb 7, 2013
1 parent b0c634c commit 91c33c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 91c33c3

Please sign in to comment.