0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -05:00

fix lint issues

This commit is contained in:
liabru 2019-09-15 18:43:28 +01:00
parent 5b0d34b9e0
commit 9ca21c1862
8 changed files with 19 additions and 20 deletions

View file

@ -192,8 +192,7 @@ var Axes = require('../geometry/Axes');
}
for (property in settings) {
if (!settings.hasOwnProperty(property))
if (!Object.prototype.hasOwnProperty.call(settings, property))
continue;
value = settings[property];

View file

@ -70,7 +70,7 @@ var Common = require('../core/Common');
* @return {vertices} vertices
*/
Vertices.fromPath = function(path, body) {
var pathPattern = /L?\s*([\-\d\.e]+)[\s,]*([\-\d\.e]+)*/ig,
var pathPattern = /L?\s*([-\d.e]+)[\s,]*([-\d.e]+)*/ig,
points = [];
path.replace(pathPattern, function(match, x, y) {