Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function margeGlobal(config, _options) {
if (isBool(_options.sumbitBtn))
_options.sumbitBtn = {show: _options.sumbitBtn};
if (isBool(_options.resetBtn))
_options.resetBtn = {show: _options.resetBtn};
let options = deepExtend(config, _options);
$set(options, 'el', !options.el
? window.document.body
: (isElement(options.el)
? options.el
: document.querySelector(options.el)
));
return options;
}
function margeGlobal(_options) {
if (isBool(_options.sumbitBtn))
$set(_options, 'sumbitBtn', {show: _options.sumbitBtn});
if (isBool(_options.resetBtn))
$set(_options, 'resetBtn', {show: _options.resetBtn});
let options = deepExtend(extend(drive.getConfig(), getBaseConfig()), _options);
$set(options, 'el', !options.el
? window.document.body
: (isElement(options.el)
? options.el
: document.querySelector(options.el)
));
return options;
}
function margeGlobal(_options) {
if (isBool(_options.sumbitBtn))
$set(_options, 'sumbitBtn', {show: _options.sumbitBtn});
if (isBool(_options.resetBtn))
$set(_options, 'resetBtn', {show: _options.resetBtn});
let options = deepExtend(extend(drive.getConfig(), getBaseConfig()), _options);
$set(options, 'el', !options.el
? window.document.body
: (isElement(options.el)
? options.el
: document.querySelector(options.el)
));
return options;
}
function margeGlobal(config, _options) {
if (isBool(_options.sumbitBtn))
_options.sumbitBtn = {show: _options.sumbitBtn};
if (isBool(_options.resetBtn))
_options.resetBtn = {show: _options.resetBtn};
let options = deepExtend(config, _options);
$set(options, 'el', !options.el
? window.document.body
: (isElement(options.el)
? options.el
: document.querySelector(options.el)
));
return options;
}
function margeGlobal(_options) {
if (isBool(_options.sumbitBtn))
$set(_options, 'sumbitBtn', {show: _options.sumbitBtn});
if (isBool(_options.resetBtn))
$set(_options, 'resetBtn', {show: _options.resetBtn});
let options = deepExtend(extend(drive.getConfig(), getBaseConfig()), _options);
$set(options, 'el', !options.el
? window.document.body
: (isElement(options.el)
? options.el
: document.querySelector(options.el)
));
return options;
}