oslek/Leaflet — pull request #1 by oslek (2013-02-05 00:19:20+00:00)
Title: prevent false move events

On a window resize, move and moveend events are fired even if the map did not move, for instance, when maximizing a window that contains a map with a fixed size.

L.Map.invalidateSize calculates the move offset and proceeds with pan and move events, even when the offset is (0, 0). I added a conditional block to prevent this.