Skip to content

Commit f09e777

Browse files
committed
1, GetFirstElement -> should be GetFirst
2, doc fix
1 parent c8fc944 commit f09e777

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/gameobjects/container/Container.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,16 +601,16 @@ var Container = new Class({
601601
* @method Phaser.GameObjects.Container#getFirst
602602
* @since 3.4.0
603603
*
604-
* @param {string} [property] - The property to test on each Game Object in the Container.
605-
* @param {*} [value] - The value to test the property against. Must pass a strict (`===`) comparison check.
604+
* @param {string} property - The property to test on each Game Object in the Container.
605+
* @param {*} value - The value to test the property against. Must pass a strict (`===`) comparison check.
606606
* @param {integer} [startIndex=0] - An optional start index to search from.
607607
* @param {integer} [endIndex=Container.length] - An optional end index to search up to (but not included)
608608
*
609609
* @return {?Phaser.GameObjects.GameObject} The first matching Game Object, or `null` if none was found.
610610
*/
611611
getFirst: function (property, value, startIndex, endIndex)
612612
{
613-
return ArrayUtils.GetFirstElement(this.list, property, value, startIndex, endIndex);
613+
return ArrayUtils.GetFirst(this.list, property, value, startIndex, endIndex);
614614
},
615615

616616
/**

0 commit comments

Comments
 (0)