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:
parent
5b0d34b9e0
commit
9ca21c1862
8 changed files with 19 additions and 20 deletions
|
@ -192,8 +192,7 @@ var Axes = require('../geometry/Axes');
|
||||||
}
|
}
|
||||||
|
|
||||||
for (property in settings) {
|
for (property in settings) {
|
||||||
|
if (!Object.prototype.hasOwnProperty.call(settings, property))
|
||||||
if (!settings.hasOwnProperty(property))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
value = settings[property];
|
value = settings[property];
|
||||||
|
|
|
@ -70,7 +70,7 @@ var Common = require('../core/Common');
|
||||||
* @return {vertices} vertices
|
* @return {vertices} vertices
|
||||||
*/
|
*/
|
||||||
Vertices.fromPath = function(path, body) {
|
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 = [];
|
points = [];
|
||||||
|
|
||||||
path.replace(pathPattern, function(match, x, y) {
|
path.replace(pathPattern, function(match, x, y) {
|
||||||
|
|
Loading…
Reference in a new issue