Skip to content

Commit d2b4816

Browse files
committed
Update the options to use the correct "extend" of object way.
1 parent d6f810d commit d2b4816

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gsdLight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
function gsdLight(x, y, options){
3-
var options=options || {};
3+
var options=Object.create(options || {});
44
if (options.minMaxRatio===undefined) options.minMaxRatio=0.00025;
55
if (options.noiseLevel===undefined) options.noiseLevel=0;
66
if (options.maxCriteria===undefined) options.maxCriteria=true;

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ options:
1010
*/
1111

1212
function gsd(x, y, options){
13-
var options=options || {};
13+
var options=Object.create(options || {});
1414
if (options.minMaxRatio===undefined) options.minMaxRatio=0.00025;
1515
if (options.broadRatio===undefined) options.broadRatio=0.0025;
1616
if (options.noiseLevel===undefined) options.noiseLevel=0;

0 commit comments

Comments
 (0)