Merge pull request #3117 from Twilrom/static

Removing use of reserved keyword 'static'
This commit is contained in:
Richard Davey 2017-12-12 17:01:55 +00:00 committed by GitHub
commit cb9506c00b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;