smalos / nubuilder_dev

Should not have unused variables JS-0128
Bug risk
Major
4 occurrences in this check
'index' is defined but never used
600    o.edited = []
601    o.deleted = []
602
603    $(sel).each(function (index) {604      const THIS = $(this)
605      const dnpk = $(this).attr('data-nu-primary-key')
606      let V = [dnpk]
'index' is defined but never used
514  subforms () {
515    const s = ['']
516
517    $("[data-nu-subform='true']").each(function (index) {518      s.push($(this)[0].id)
519    })
520
'index' is defined but never used
401    const t = []
402    const fld = []
403
404    $('.nuBox').each(function (index) {405      const b = $(this)[0].id
406      const T = $('#tablename' + b).val()
407      const A = $('#alias' + b).val()
'index' is defined but never used
378    const fld = []
379
380    const sqlFrameContents = $('#sqlframe').contents()
381    sqlFrameContents.find('.nuBox').each(function (index) {382      const b = $(this)[0].id
383      let a = sqlFrameContents.find('#alias' + b).val()
384      const t = sqlFrameContents.find('#tablename' + b).html()