Commit d691908a authored by Aron Carroll's avatar Aron Carroll

hypothesisConfig now extends the default options

This saves the implementor redefining the defaults if they only want
to override one or two options.
parent 78235395
......@@ -16,7 +16,7 @@ if (window.hasOwnProperty('hypothesisRole')) {
if (window.hasOwnProperty('hypothesisConfig')) {
if (typeof window.hypothesisConfig === 'function') {
options = window.hypothesisConfig();
options = jQuery.extend(options, window.hypothesisConfig());
} else {
throw new TypeError('hypothesisConfig must be a function, see: ' + docs);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment