From 7694b7d4f8fd535c7697eff11090229e5301ee49 Mon Sep 17 00:00:00 2001 From: liabru Date: Wed, 23 Apr 2014 16:54:35 +0100 Subject: [PATCH] removed Body.updateProperties (now a private method) --- src/body/Body.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/body/Body.js b/src/body/Body.js index db57a4f..a32ec7b 100644 --- a/src/body/Body.js +++ b/src/body/Body.js @@ -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);