};
map.addListener(listener);
portlet.addCloseClickHandler(new CloseClickHandler() {
public void onCloseClick(CloseClientEvent event) {
map.removeListener(listener);
if (map.getListeners() != null) {
SC.say(I18nProvider.getSampleMessages().multipleListenersCount(map.getListeners().size()));
}
portlet.destroy();
}