Skip to content

Commit 7ee0a71

Browse files
committed
Container.getFirst was using an incorrect Array Utils function GetFirstElement, when it should have been using GetFirst. It now uses the correct function. Fix phaserjs#4244
1 parent 90c7d4d commit 7ee0a71

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/container/Container.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ var Container = new Class({
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
/**

src/structs/List.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ var List = new Class({
283283
*/
284284
getFirst: function (property, value, startIndex, endIndex)
285285
{
286-
return ArrayUtils.GetFirstElement(this.list, property, value, startIndex, endIndex);
286+
return ArrayUtils.GetFirst(this.list, property, value, startIndex, endIndex);
287287
},
288288

289289
/**

0 commit comments

Comments
 (0)