From 841bf975f11de84090a03df2a1ed2f6186b909cb Mon Sep 17 00:00:00 2001 From: liabru Date: Sat, 25 Nov 2017 14:59:42 +0000 Subject: [PATCH] added missing docs for Matter.World aliases --- src/body/World.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/body/World.js b/src/body/World.js index 0cd3171..8a4cbce 100644 --- a/src/body/World.js +++ b/src/body/World.js @@ -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