Skip to content

Commit 64e5b43

Browse files
committed
Fix 'static is a reserved word in strict mode'
1 parent 2219858 commit 64e5b43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/physics/arcade/World.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ var World = new Class({
695695
var body;
696696

697697
var dynamic = this.bodies;
698-
var static = this.staticBodies;
698+
var staticBodies = this.staticBodies;
699699
var pending = this.pendingDestroy;
700700

701701
var bodies = dynamic.entries;
@@ -727,7 +727,7 @@ var World = new Class({
727727
}
728728
}
729729

730-
bodies = static.entries;
730+
bodies = staticBodies.entries;
731731
len = bodies.length;
732732

733733
for (i = 0; i < len; i++)
@@ -761,7 +761,7 @@ var World = new Class({
761761
else if (body.physicsType === CONST.STATIC_BODY)
762762
{
763763
staticTree.remove(body);
764-
static.delete(body);
764+
staticBodies.delete(body);
765765
}
766766

767767
body.world = undefined;

0 commit comments

Comments
 (0)