Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const initOpen = (options = {}, ref) => {
const opts = _initOpt(options, 'op.open');
const buttons = [];
if (opts['open.add']) {
const button = _initButton(opts, 'open.add', 'openAdd');
button.onClick = Event.rxAddTab(ref);
buttons.push(button);
}
if (opts['open.filter']) {
const button = _initButton(opts, 'open.filter', 'openFilter');
button.onClick = Event.rxClean(ref);
buttons.push(button);
}
return buttons;
};
const initBatch = (options = {}) => {