0
0
Fork 0
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:
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); 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);