With Leaflet 0.7.7, console returns "leaflet.scalefactor.min.js:5 Uncaught TypeError: e.distance is not a function"