wikimedia/WLMMobile — pull request #98 by brion (2012-08-02 20:52:53+00:00)
Title: Slightly hacky fix for bug 38933 - pass through to Leaflet's _onResize()...

... handler

* call map._onResize() which wraps an invalidateSize() in a requestAnimationFrame call, which is faster and less crude than a setTimeout
* manually call the _onResize handler during resize so we can avoid it when the map page is hidden -- that just breaks!
* abstract things a bit