title: How to "unbind" Popups in Mapbox? Allowing only popups from markers within certain range(changing when user moves)
body: <p>I'm trying to toggle between the ability to see tooltips or popups for markers on my map, depending on distance from them. There is an easy way to enable the popup, but is there any way similar to </p>
  
  <pre><code>marker.bindPopup(entries[i].text_content);
  </code></pre>
  
  <p>to remove the ability to view the popup again?</p>
  
  <p>For reference, here is the complete part of code</p>
  
  <pre><code>$http.get(ApiEndpoint.entry).then(function(data) {
      entries = data.data;
      for (i=0; i&lt;entries.length; i++){
              var lat = entries[i].lat;
              var long = entries[i].long;
      }
      var markers = new L.MarkerClusterGroup({maxClusterRadius: 40, removeOutsideVisibleBounds: true, singleMarkerMode: true});
  
      for (var i = 0; i &lt; entries.length; i++) {
          var a = entries[i];
          var title = a[2];
          marker = L.marker(new L.LatLng(a.lat, a.long), {
              icon: L.mapbox.marker.icon({'marker-symbol': 'post', 'marker-color': '0044FF'}),
          });
          if(haversineDistance(current_lat, current_long, entries[i].lat, entries[i].long)&lt;26){
              marker.bindPopup(entries[i].text_content);
          };
  
          markers.addLayer(marker);   
      }
      map.addLayer(markers);
  });
  </code></pre>
  
  <p>Where the haversineDistance function is used to calculate the distance from current location to the marker.</p>
  
  <p>What I would like, is some piece of code which can be run in a loop, that removes all popups at a time interval, allowing me to use the if-statement again, to allow popups for markers within range, as the user moves.</p>