Leaflet/Leaflet — pull request #1982 by fastrde (2013-08-17 00:24:03+00:00)
Title: Fix worldCopyJump set Center and Zoom first

Hello,

here is the chain that produces the error in Issue #1904.
```
_onViewReset()
-> L.Map.latLngToLayerPoint()
-> L.Map.getPixelOrigin()
-> L.Map._checkIfLoaded()
-> BOOM
```

now the call of _onViewReset() is event-based and waits for the map to get ready ('load' event). That fixes Issue #1904 and should work as well for Issue #1831

lg

fastr