Hi guys,
I'm aware that blockClousures map to js functions but how would you write in amber this piece of js code? [1]
function( data ) {
response( $.map( data.geonames, function( item ) {
return {
label: item.name + (item.adminName1 ? ", " + item.adminName1 : "") + ", " + item.countryName,
value: item.name
}
}));
sebastian
PD: that's needed for was extracted from the autocomplete example here:
http://jqueryui.com/demos/autocomplete/#remote-jsonp
[1] if I'm understanding it right this piece of code seems to assign the response function to the autocomplete in the success callback. Isn't it?