Reference event listener instead of calling it

This was causing Leaflet to throw an error when the map was resized, as it was trying to call `undefined`.