Skip to content

Commit

Permalink
Merge pull request #106 from MagicCube/master
Browse files Browse the repository at this point in the history
Use Object.create() instead of Object()
  • Loading branch information
manuelbieh committed Nov 2, 2016
2 parents 8bbf4d9 + 6fc3728 commit 270aae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geolib.js
Expand Up @@ -937,7 +937,7 @@
for(var coord in coords) {

var distance = this.getDistance(latlng, coords[coord]);
var augmentedCoord = Object(coords[coord]);
var augmentedCoord = Object.create(coords[coord]);
augmentedCoord.distance = distance;
augmentedCoord.key = coord;

Expand Down

0 comments on commit 270aae9

Please sign in to comment.