From ba6251b77c3800f1248e298fe0aa1c6029ea1fd1 Mon Sep 17 00:00:00 2001 From: mamrehn Date: Wed, 8 Apr 2015 15:47:17 +0200 Subject: [PATCH] Fix bug #176, where range(longitude) == range(latitude) Multiple calls to initOptions function prevented default values to affect the option variable's min and max values. --- chance.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/chance.js b/chance.js index 8e3738d8..fafac35f 100644 --- a/chance.js +++ b/chance.js @@ -942,7 +942,6 @@ }; Chance.prototype.coordinates = function (options) { - options = initOptions(options); return this.latitude(options) + ', ' + this.longitude(options); }; @@ -967,7 +966,6 @@ }; Chance.prototype.geojson = function (options) { - options = initOptions(options); return this.latitude(options) + ', ' + this.longitude(options) + ', ' + this.altitude(options); };