mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-24 09:36:48 -05:00
removed Body.updateProperties (now a private method)
This commit is contained in:
parent
8acfdb7f38
commit
7694b7d4f8
1 changed files with 5 additions and 4 deletions
|
@ -56,7 +56,7 @@ var Body = {};
|
||||||
|
|
||||||
var body = Common.extend(defaults, options);
|
var body = Common.extend(defaults, options);
|
||||||
|
|
||||||
Body.updateProperties(body);
|
_initProperties(body);
|
||||||
|
|
||||||
return body;
|
return body;
|
||||||
};
|
};
|
||||||
|
@ -80,11 +80,12 @@ var Body = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description
|
* Initialises body properties
|
||||||
* @method updateProperties
|
* @method _initProperties
|
||||||
|
* @private
|
||||||
* @param {body} body
|
* @param {body} body
|
||||||
*/
|
*/
|
||||||
Body.updateProperties = function(body) {
|
var _initProperties = function(body) {
|
||||||
// calculated properties
|
// calculated properties
|
||||||
body.vertices = body.vertices || Vertices.fromPath(body.render.path);
|
body.vertices = body.vertices || Vertices.fromPath(body.render.path);
|
||||||
body.axes = body.axes || Axes.fromVertices(body.vertices);
|
body.axes = body.axes || Axes.fromVertices(body.vertices);
|
||||||
|
|
Loading…
Reference in a new issue