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:
parent
74a7cfc966
commit
774d8bccff
1 changed files with 8 additions and 8 deletions
|
@ -539,15 +539,15 @@ var Body = require('./Body');
|
|||
* @returns {bounds} The composite bounds.
|
||||
*/
|
||||
Composite.bounds = function(composite) {
|
||||
var bodies = Matter.Composite.allBodies(composite),
|
||||
vertices = [];
|
||||
|
||||
for (var i = 0; i < bodies.length; i += 1) {
|
||||
var body = bodies[i];
|
||||
vertices.push(body.bounds.min, body.bounds.max);
|
||||
}
|
||||
var bodies = Matter.Composite.allBodies(composite),
|
||||
vertices = [];
|
||||
|
||||
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);
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue