Skip to content

Commit f2e8a83

Browse files
author
SirJosh3917
authored
Update ContainerFactory.js
Given that Container's constructor allows x and y to be optional, the JSDoc should match that.
1 parent 000beb2 commit f2e8a83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/container/ContainerFactory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ var GameObjectFactory = require('../GameObjectFactory');
1616
* @method Phaser.GameObjects.GameObjectFactory#container
1717
* @since 3.4.0
1818
*
19-
* @param {number} x - The horizontal position of this Game Object in the world.
20-
* @param {number} y - The vertical position of this Game Object in the world.
19+
* @param {number} [x=0] - The horizontal position of this Game Object in the world.
20+
* @param {number} [y=0] - The vertical position of this Game Object in the world.
2121
* @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} [children] - An optional array of Game Objects to add to this Container.
2222
*
2323
* @return {Phaser.GameObjects.Container} The Game Object that was created.

0 commit comments

Comments
 (0)