title: How to hook into the "close infobubble" event in HERE maps Javascript API
body: <p>I can create infobubbles using the HERE maps Javascript API - eg from their <a href="http://heremaps.github.io/examples/explorer.html#infobubble-on-marker-click" rel="nofollow">documentation</a>:</p>
  
  <pre><code>    function addInfoBubble(map) {
        map.set('center', new nokia.maps.geo.Coordinate(53.430, -2.961));
        map.setZoomLevel(7);
  
        var infoBubbles = new nokia.maps.map.component.InfoBubbles(),
          TOUCH = nokia.maps.dom.Page.browser.touch,
          CLICK = TOUCH ? 'tap' : 'click',
          container = new nokia.maps.map.Container();
  
        container.addListener(CLICK, function (evt) {
          infoBubbles.openBubble(evt.target.html, evt.target.coordinate);
        }, false);
        map.components.add(infoBubbles);
        map.objects.add(container);
  
        addMarkerToContainer(container, [53.439, -2.221],
          '&lt;div&gt;&lt;a href=\'http://www.mcfc.co.uk\' &gt;Manchester City&lt;/a&gt;' +
          '&lt;/div&gt;&lt;div &gt;City of Manchester Stadium&lt;br&gt;Capacity: 48,000&lt;/div&gt;');
  
        addMarkerToContainer(container, [53.430, -2.961],
          '&lt;div &gt;&lt;a href=\'http://www.liverpoolfc.tv\' &gt;Liverpool&lt;/a&gt;' +
          '&lt;/div&gt;&lt;div &gt;Anfield&lt;br&gt;Capacity: 45,362&lt;/div&gt;');
      }
      function addMarkerToContainer(container, coordinate, html) {
        var marker = new nokia.maps.map.StandardMarker(
          coordinate,
          {html: html}
        );
        container.objects.add(marker);
      }
  </code></pre>
  
  <p>I would like to hook into the close event of the infobubble.  I realise I could use jQuery to find the span that contains the close button (examining the markup, I believe it has the class <code>nm_bubble_control_close</code>) and do something when this is clicked.  However I thought there would be a built-in event that I could use.</p>
  
  <p>Does anyone know if there is a built-in event that fires when the infobubble is closed?  I can't find anything in the documentation.</p>