1, GetFirstElement -> should be GetFirst

2, doc fix
This commit is contained in:
J.C 2018-12-20 11:11:56 +08:00
parent c8fc944d94
commit f09e777f84

View file

@ -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);
},
/**