Skip to content

Commit

Permalink
Fix bug #176, where range(longitude) == range(latitude)
Browse files Browse the repository at this point in the history
Multiple calls to initOptions function prevented default values to affect the option variable's min and max values.
  • Loading branch information
mamrehn committed Apr 8, 2015
1 parent 6b399b6 commit ba6251b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chance.js
Expand Up @@ -942,7 +942,6 @@
};

Chance.prototype.coordinates = function (options) {
options = initOptions(options);
return this.latitude(options) + ', ' + this.longitude(options);
};

Expand All @@ -967,7 +966,6 @@
};

Chance.prototype.geojson = function (options) {
options = initOptions(options);
return this.latitude(options) + ', ' + this.longitude(options) + ', ' + this.altitude(options);
};

Expand Down

0 comments on commit ba6251b

Please sign in to comment.