*/
@SuppressWarnings("serial")
public class SearchResultsHandlerCollection extends
ArrayList<SearchResultsHandler> {
void fireResult(Search search, JsArray<? extends Result> results) {
UncaughtExceptionHandler handler = GWT.getUncaughtExceptionHandler();
SearchResultsEvent event = new SearchResultsEvent(search, results);
for (SearchResultsHandler l : this) {
if (handler != null) {
try {
l.onSearchResults(event);
} catch (Throwable e) {
handler.onUncaughtException(e);
break;
}
} else {
l.onSearchResults(event);
}