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

fixed Body.create with no options

This commit is contained in:
liabru 2016-11-03 00:43:07 +00:00
parent 4da2e25f24
commit 0e5a4579b6

View file

@ -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),