Fix 'static is a reserved word in strict mode'

This commit is contained in:
samme 2018-02-18 10:38:08 -08:00
parent 2219858764
commit 64e5b4394a

View file

@ -695,7 +695,7 @@ var World = new Class({
var body;
var dynamic = this.bodies;
var static = this.staticBodies;
var staticBodies = this.staticBodies;
var pending = this.pendingDestroy;
var bodies = dynamic.entries;
@ -727,7 +727,7 @@ var World = new Class({
}
}
bodies = static.entries;
bodies = staticBodies.entries;
len = bodies.length;
for (i = 0; i < len; i++)
@ -761,7 +761,7 @@ var World = new Class({
else if (body.physicsType === CONST.STATIC_BODY)
{
staticTree.remove(body);
static.delete(body);
staticBodies.delete(body);
}
body.world = undefined;