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:
Richard Davey 2018-12-18 12:12:47 +00:00
parent 90c7d4d0e8
commit 7ee0a717f5
2 changed files with 2 additions and 2 deletions

View file

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

View file

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