Skip to content

Commit c8fc944

Browse files
committed
the parameter is actually the value you are seeking but not T type.
bug fix: GetFirstElement -> GetFirst, as ArrayUtils does not have GetFirstElement method.
1 parent 110819e commit c8fc944

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/structs/List.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ var List = new Class({
271271
* @method Phaser.Structs.List#getFirst
272272
* @since 3.0.0
273273
*
274-
* @genericUse {T} - [value]
275274
* @genericUse {T | null} - [$return]
276275
*
277276
* @param {string} property - The name of the property to test or a falsey value to have no criterion.
@@ -283,7 +282,7 @@ var List = new Class({
283282
*/
284283
getFirst: function (property, value, startIndex, endIndex)
285284
{
286-
return ArrayUtils.GetFirstElement(this.list, property, value, startIndex, endIndex);
285+
return ArrayUtils.GetFirst(this.list, property, value, startIndex, endIndex);
287286
},
288287

289288
/**

0 commit comments

Comments
 (0)