diff --git a/src/edit/handler/Edit.Circle.js b/src/edit/handler/Edit.Circle.js index 6d379b984..e8f306ff1 100644 --- a/src/edit/handler/Edit.Circle.js +++ b/src/edit/handler/Edit.Circle.js @@ -23,7 +23,7 @@ L.Edit.Circle = L.Edit.CircleMarker.extend({ _resize: function (latlng) { var moveLatLng = this._moveMarker.getLatLng(); - + var radius; // Calculate the radius based on the version if (L.GeometryUtil.isVersion07x()) { radius = moveLatLng.distanceTo(latlng); diff --git a/src/ext/GeometryUtil.js b/src/ext/GeometryUtil.js index 5a95cfaf3..5efae3985 100755 --- a/src/ext/GeometryUtil.js +++ b/src/ext/GeometryUtil.js @@ -70,7 +70,7 @@ if (isMetric) { units = ['ha', 'm']; - type = typeof isMetric; + var type = typeof isMetric; if (type === 'string') { units = [isMetric]; } else if (type !== 'boolean') {