0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00

removed Body.updateProperties (now a private method)

This commit is contained in:
liabru 2014-04-23 16:54:35 +01:00
parent 8acfdb7f38
commit 7694b7d4f8

View file

@ -56,7 +56,7 @@ var Body = {};
var body = Common.extend(defaults, options);
Body.updateProperties(body);
_initProperties(body);
return body;
};
@ -80,11 +80,12 @@ var Body = {};
};
/**
* Description
* @method updateProperties
* Initialises body properties
* @method _initProperties
* @private
* @param {body} body
*/
Body.updateProperties = function(body) {
var _initProperties = function(body) {
// calculated properties
body.vertices = body.vertices || Vertices.fromPath(body.render.path);
body.axes = body.axes || Axes.fromVertices(body.vertices);