How to delete a listener in OpenLayers 3
<p>I make a <a href="https://gis.stackexchange.com/questions/178222/how-to-delete-a-listener-in-openlayers-3">copy</a> of my question here at stackoverflow, because at gis.stackexchange all my questions do not attract any attention - many times I could not get an answer to simple questions there. So, my question now is how to delete a listener defined this way:</p>

<pre><code>map.getViewport().addEventListener('click', function (e){
   console.log("clicked");      
}); 
</code></pre>