In older versions of mapbox.js you can do something like this:
onEachFeature: function (feature, layer) { layer.bindPopup(popupHtml); console.log(laye