Skip to content

Commit a6ef9e0

Browse files
committed
Shorter warning
1 parent 703f040 commit a6ef9e0

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
@@ -20,15 +20,15 @@ var hasWarned = false;
2020
*
2121
* @param {number} x - The horizontal position of this Game Object in the world.
2222
* @param {number} y - The vertical position of this Game Object in the world.
23-
* @param {Phaser.GameObjects.GameObject[]} [children] - An optional array of Game Objects to add to this Container.
23+
* @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} [children] - An optional array of Game Objects to add to this Container.
2424
*
2525
* @return {Phaser.GameObjects.Container} The Game Object that was created.
2626
*/
2727
GameObjectFactory.register('container', function (x, y, children)
2828
{
2929
if (!hasWarned)
3030
{
31-
console.warn('Containers are experimental and should not be used in production');
31+
console.warn('Use of a beta feature: Containers');
3232
hasWarned = true;
3333
}
3434

0 commit comments

Comments
 (0)