mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Fix 'static is a reserved word in strict mode'
This commit is contained in:
parent
2219858764
commit
64e5b4394a
1 changed files with 3 additions and 3 deletions
|
@ -695,7 +695,7 @@ var World = new Class({
|
||||||
var body;
|
var body;
|
||||||
|
|
||||||
var dynamic = this.bodies;
|
var dynamic = this.bodies;
|
||||||
var static = this.staticBodies;
|
var staticBodies = this.staticBodies;
|
||||||
var pending = this.pendingDestroy;
|
var pending = this.pendingDestroy;
|
||||||
|
|
||||||
var bodies = dynamic.entries;
|
var bodies = dynamic.entries;
|
||||||
|
@ -727,7 +727,7 @@ var World = new Class({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bodies = static.entries;
|
bodies = staticBodies.entries;
|
||||||
len = bodies.length;
|
len = bodies.length;
|
||||||
|
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
|
@ -761,7 +761,7 @@ var World = new Class({
|
||||||
else if (body.physicsType === CONST.STATIC_BODY)
|
else if (body.physicsType === CONST.STATIC_BODY)
|
||||||
{
|
{
|
||||||
staticTree.remove(body);
|
staticTree.remove(body);
|
||||||
static.delete(body);
|
staticBodies.delete(body);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.world = undefined;
|
body.world = undefined;
|
||||||
|
|
Loading…
Reference in a new issue