Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const refresh = (data) => {
const result = processData(menu.extractFilteredMarkets(data));
function changed() {
const val = $(this).val();
if (result.submarket_names[val]) submarket_names.update_list(result.submarket_names[val]);
updateTable(result, market_names.val(), submarket_names.val());
};
if (market_names == null) {
const select = $('<select>');
select.appendTo(subheader);
market_names = windows.makeSelectmenu(select, {
list: result.market_names,
inx: 0,
});
market_names.off('selectmenuchange', changed);</select>
const refresh = (data) => {
const result = processData(menu.extractFilteredMarkets(data[0]));
const active_symbols = local_storage.get('active_symbols')
const header = getMarketsSubmarkets(active_symbols);
const markets_sorted_list = getOrderedMarkets(active_symbols);
if($.isEmptyObject(header)) return;
function changed() {
const val = $(this).val();
if (header[val]) submarket_names.update_list(Object.keys(header[val]));
updateTable(result, market_names.val(), submarket_names.val());
};
if (market_names == null) {
const select = $('<select>');</select>