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

fix lint errors

This commit is contained in:
liabru 2017-07-06 23:36:39 +01:00
parent 74a7cfc966
commit 774d8bccff

View file

@ -539,15 +539,15 @@ var Body = require('./Body');
* @returns {bounds} The composite bounds. * @returns {bounds} The composite bounds.
*/ */
Composite.bounds = function(composite) { Composite.bounds = function(composite) {
var bodies = Matter.Composite.allBodies(composite), var bodies = Matter.Composite.allBodies(composite),
vertices = []; vertices = [];
for (var i = 0; i < bodies.length; i += 1) {
var body = bodies[i];
vertices.push(body.bounds.min, body.bounds.max);
}
return Matter.Bounds.create(vertices); for (var i = 0; i < bodies.length; i += 1) {
var body = bodies[i];
vertices.push(body.bounds.min, body.bounds.max);
}
return Matter.Bounds.create(vertices);
}; };
/* /*