Removing use of reserved keyword 'static'

This commit is contained in:
Twilrom 2017-12-08 10:38:13 +01:00
parent b5e8a60530
commit 8ab43f35d2

View file

@ -1,6 +1,6 @@
var Friction = {
setFriction: function (value, air, static)
setFriction: function (value, air, _static)
{
this.body.friction = value;
@ -9,9 +9,9 @@ var Friction = {
this.body.frictionAir = air;
}
if (static !== undefined)
if (_static !== undefined)
{
this.body.frictionStatic = static;
this.body.frictionStatic = _static;
}
return this;