0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -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 * @method _initProperties
* @private * @private
* @param {body} body * @param {body} body
* @param {} options * @param {} [options]
*/ */
var _initProperties = function(body, options) { var _initProperties = function(body, options) {
options = options || {};
// init required properties (order is important) // init required properties (order is important)
Body.set(body, { Body.set(body, {
bounds: body.bounds || Bounds.create(body.vertices), bounds: body.bounds || Bounds.create(body.vertices),