ebrelsford/Leaflet.loading — pull request #5 by codefox421 (2013-07-01 14:35:20+00:00)
Title: Removable control

It follows from the ability to add a control to the map that one should also be able to remove that control. This enables the ability to remove the loading control.

The code follows L.Control.ZoomControl closely, but this means map.loadingControl is not guaranteed to exist. That's okay since the control always references itself directly (rather than through its instance assumed to be attached to the map).