Leaflet/Leaflet.draw — pull request #136 by snkashis (2013-05-03 00:22:54+00:00)
Title: Don't enter delete or edit modes if no layers are available

I thought it was a bit odd that you could enter the delete and edit modes and see the tooltip+save/cancel buttons, even if there was nothing available to use them on. This prevents that.