mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Container.getFirst
was using an incorrect Array Utils function GetFirstElement
, when it should have been using GetFirst
. It now uses the correct function. Fix #4244
This commit is contained in:
parent
90c7d4d0e8
commit
7ee0a717f5
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -283,7 +283,7 @@ var List = 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