From 0e5a4579b6d141ec1c5695a5d2ade998e37657b1 Mon Sep 17 00:00:00 2001 From: liabru Date: Thu, 3 Nov 2016 00:43:07 +0000 Subject: [PATCH] fixed Body.create with no options --- src/body/Body.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/body/Body.js b/src/body/Body.js index 36a8c81..698efda 100644 --- a/src/body/Body.js +++ b/src/body/Body.js @@ -122,9 +122,11 @@ var Axes = require('../geometry/Axes'); * @method _initProperties * @private * @param {body} body - * @param {} options + * @param {} [options] */ var _initProperties = function(body, options) { + options = options || {}; + // init required properties (order is important) Body.set(body, { bounds: body.bounds || Bounds.create(body.vertices),