Prepared for use of more than 1 d3layer in leaflet-directive
Moved back to previous promise lib