|
$package("raiya.cityFilterRaiya");
$raiya("HxTest.CityFilterRaiya",
{
filter : function(cityName)
{
var filteredCollection = new HxTest.CustomerCollection();
for(var i = 0; i < this._customers.length; i++)
{
if(this._customers[i].getCity() == cityName)
filteredCollection.add(this._customers[i]);
}
return filteredCollection;
}
});
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.