wikimedia/WLMMobile — pull request #97 by brion (2012-08-02 20:46:58+00:00)
Title: Less hacky fix for bug 38933

Less hacky fix for bug 38933 - pass through to Leaflet's _onResize() handler

This is slightly cleaner:
* 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