0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -05:00

added missing docs for Matter.World aliases

This commit is contained in:
liabru 2017-11-25 14:59:42 +00:00
parent ece66e6f16
commit 841bf975f1

View file

@ -96,6 +96,23 @@ var Common = require('../core/Common');
// World is a Composite body
// see src/module/Outro.js for these aliases:
/**
* An alias for Composite.add
* @method add
* @param {world} world
* @param {} object
* @return {composite} The original world with the objects added
*/
/**
* An alias for Composite.remove
* @method remove
* @param {world} world
* @param {} object
* @param {boolean} [deep=false]
* @return {composite} The original world with the objects removed
*/
/**
* An alias for Composite.clear
* @method clear
@ -104,7 +121,7 @@ var Common = require('../core/Common');
*/
/**
* An alias for Composite.add
* An alias for Composite.addComposite
* @method addComposite
* @param {world} world
* @param {composite} composite