Skip to content

Commit af73105

Browse files
author
Ken Price
committed
Ignore undefined options in normalizeOptions
1 parent 1e57edf commit af73105

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/utils/normalize_options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ function normalizeOptions(options, Ctor) {
1818
var instance = new Ctor();
1919

2020
Object.keys(options).forEach(function(key) {
21-
instance[key] = options[key];
21+
if (typeof options[key] !== "undefined") {
22+
instance[key] = options[key];
23+
}
2224
});
2325

2426
return instance;

0 commit comments

Comments
 (0)