ebrelsford/Leaflet.loading — pull request #10 by codefox421 (2013-07-24 20:32:15+00:00)
Title: Use `eachLayer`

Utilize Leaflet's built-in `eachLayer` function when iterating through layers.

Additionally, test if a layer's `on` or `off` method exists before trying to invoke it.