Skip to content

Commit 812de7d

Browse files
committed
Fix typos in Phaser.Group#forEachExists for docs phaserjs#447
1 parent 5f79bb4 commit 812de7d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/Group.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -817,11 +817,11 @@ Phaser.Group.prototype.forEach = function (callback, callbackContext, checkExist
817817
}
818818

819819
/**
820-
* Allows you to call your own function on each alive member of this Group (where child.alive=true). You must pass the callback and context in which it will run.
820+
* Allows you to call your own function on each member of this Group where child.exists=true. You must pass the callback and context in which it will run.
821821
* You can add as many parameters as you like, which will all be passed to the callback along with the child.
822-
* For example: Group.forEachAlive(causeDamage, this, 500)
822+
* For example: Group.forEachExists(causeDamage, this, 500)
823823
*
824-
* @method Phaser.Group#forEachAlive
824+
* @method Phaser.Group#forEachExists
825825
* @param {function} callback - The function that will be called. Each child of the Group will be passed to it as its first parameter.
826826
* @param {Object} callbackContext - The context in which the function should be called (usually 'this').
827827
*/

0 commit comments

Comments
 (0)