mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
1, GetFirstElement -> should be GetFirst
2, doc fix
This commit is contained in:
parent
c8fc944d94
commit
f09e777f84
1 changed files with 3 additions and 3 deletions
|
@ -601,8 +601,8 @@ var Container = new Class({
|
|||
* @method Phaser.GameObjects.Container#getFirst
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param {string} [property] - The property to test on each Game Object in the Container.
|
||||
* @param {*} [value] - The value to test the property against. Must pass a strict (`===`) comparison check.
|
||||
* @param {string} property - The property to test on each Game Object in the Container.
|
||||
* @param {*} value - The value to test the property against. Must pass a strict (`===`) comparison check.
|
||||
* @param {integer} [startIndex=0] - An optional start index to search from.
|
||||
* @param {integer} [endIndex=Container.length] - An optional end index to search up to (but not included)
|
||||
*
|
||||
|
@ -610,7 +610,7 @@ var Container = new Class({
|
|||
*/
|
||||
getFirst: function (property, value, startIndex, endIndex)
|
||||
{
|
||||
return ArrayUtils.GetFirstElement(this.list, property, value, startIndex, endIndex);
|
||||
return ArrayUtils.GetFirst(this.list, property, value, startIndex, endIndex);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue