title: Leaflet popup clears content on first close
body: <p>for my app I'm using Leaflet and I went pretty far with it, so I'm sure I understood the "leaflet way" of getting things done.</p>
  
  <p>As I have exactly one static layout for all of my markers I created a simple Mustache template, which inserts the variable data and gives me my HTML:</p>
  
  <pre><code>can.view("leads/popup", viewOptions)
  </code></pre>
  
  <p>This works as expected and results in a HTML string, which gets properly displayed.</p>
  
  <p>But when I close and reopen the popup it results in an empty popup content.</p>
  
  <pre><code>var popup = L.popup({maxWidth: 1000, closeOnClick: true}, marker);
  popup.setContent(can.view("leads/popup", viewOptions));
  
  var marker = L.marker(L.latLng(lng, lat),
    {icon: L.divIcon({
      className: 'lead-icon lead_'+lead._id.$oid,
      iconSize: [size, size],
      html: '&lt;span class="marker-label"&gt;' + label + '&lt;/span&gt;'
    })
  });
  
  marker.bindPopup(popup);
  self.displayMarker(marker);
  </code></pre>
  
  <p>What I thought was extending the L.Popup class and set _content fixed to my HTML code. But I'm unsure if it isn't a little bit overpowered.</p>
  
  <p>Thanks a lot for your help, </p>
  
  <p>Stephan</p>