smalos / nubuilder_dev

Invalid variable usage JS-0043
Anti-pattern
Critical
371 occurrences in this check
'i' used outside of binding context.
 99
100  t = o[$('#sfo_type').val()]
101  if (t !== undefined) {
102    for (i = 0; i < t.length; i++) {103      $('#nuTab' + t[i]).addClass('nuRelatedTab')
104    }
105  }
'i' used outside of binding context.
 99
100  t = o[$('#sfo_type').val()]
101  if (t !== undefined) {
102    for (i = 0; i < t.length; i++) {103      $('#nuTab' + t[i]).addClass('nuRelatedTab')
104    }
105  }
'i' used outside of binding context.
 99
100  t = o[$('#sfo_type').val()]
101  if (t !== undefined) {
102    for (i = 0; i < t.length; i++) {103      $('#nuTab' + t[i]).addClass('nuRelatedTab')
104    }
105  }
'i' used outside of binding context.
100  t = o[$('#sfo_type').val()]
101  if (t !== undefined) {
102    for (i = 0; i < t.length; i++) {
103      $('#nuTab' + t[i]).addClass('nuRelatedTab')104    }
105  }
106}
'_nuSelectBrowse' used outside of binding context.
354  if (nuMainForm()) {
355    nuSelectBrowseMainForm(e, t)
356  } else {
357    _nuSelectBrowse(e, t)358  }
359}
360
'i' used outside of binding context.
249  t = o[$('#sfo_type').val()]
250  if (t !== undefined) {
251    for (i = 0; i < t.length; i++) {
252      $('#nuTab' + t[i]).addClass('nuRelatedTab')253    }
254  }
255
'i' used outside of binding context.
248
249  t = o[$('#sfo_type').val()]
250  if (t !== undefined) {
251    for (i = 0; i < t.length; i++) {252      $('#nuTab' + t[i]).addClass('nuRelatedTab')
253    }
254  }
'i' used outside of binding context.
248
249  t = o[$('#sfo_type').val()]
250  if (t !== undefined) {
251    for (i = 0; i < t.length; i++) {252      $('#nuTab' + t[i]).addClass('nuRelatedTab')
253    }
254  }
'i' used outside of binding context.
248
249  t = o[$('#sfo_type').val()]
250  if (t !== undefined) {
251    for (i = 0; i < t.length; i++) {252      $('#nuTab' + t[i]).addClass('nuRelatedTab')
253    }
254  }
'd' used outside of binding context.
782      const FMT = this.setFormats()
783
784      if (v.includes('-')) {
785        var d = String(v.split(' ')[0]).split('-')786        var t = String(v.split(' ')[1]).split(':')
787      } else {
788        var d = [0, 0, 0]
't' used outside of binding context.
783
784      if (v.includes('-')) {
785        var d = String(v.split(' ')[0]).split('-')
786        var t = String(v.split(' ')[1]).split(':')787      } else {
788        var d = [0, 0, 0]
789        var t = String(v.split(' ')[0]).split(':')
't' used outside of binding context.
793        var t = [0, 0, 0]
794      }
795
796      const o = new Date(d[0], d[1] - 1, d[2], t[0], t[1], t[2], 0)			// -- (year, month, day, hours, minutes, seconds, milliseconds)797
798      if (!nuDateIsValid(o)) { return '' }
799
't' used outside of binding context.
793        var t = [0, 0, 0]
794      }
795
796      const o = new Date(d[0], d[1] - 1, d[2], t[0], t[1], t[2], 0)			// -- (year, month, day, hours, minutes, seconds, milliseconds)797
798      if (!nuDateIsValid(o)) { return '' }
799
't' used outside of binding context.
793        var t = [0, 0, 0]
794      }
795
796      const o = new Date(d[0], d[1] - 1, d[2], t[0], t[1], t[2], 0)			// -- (year, month, day, hours, minutes, seconds, milliseconds)797
798      if (!nuDateIsValid(o)) { return '' }
799
't' used outside of binding context.
790      }
791
792      if (t[0] == 'undefined') {
793        var t = [0, 0, 0]794      }
795
796      const o = new Date(d[0], d[1] - 1, d[2], t[0], t[1], t[2], 0)			// -- (year, month, day, hours, minutes, seconds, milliseconds)
't' used outside of binding context.
789        var t = String(v.split(' ')[0]).split(':')
790      }
791
792      if (t[0] == 'undefined') {793        var t = [0, 0, 0]
794      }
795
't' used outside of binding context.
786        var t = String(v.split(' ')[1]).split(':')
787      } else {
788        var d = [0, 0, 0]
789        var t = String(v.split(' ')[0]).split(':')790      }
791
792      if (t[0] == 'undefined') {
'd' used outside of binding context.
793        var t = [0, 0, 0]
794      }
795
796      const o = new Date(d[0], d[1] - 1, d[2], t[0], t[1], t[2], 0)			// -- (year, month, day, hours, minutes, seconds, milliseconds)797
798      if (!nuDateIsValid(o)) { return '' }
799
'd' used outside of binding context.
793        var t = [0, 0, 0]
794      }
795
796      const o = new Date(d[0], d[1] - 1, d[2], t[0], t[1], t[2], 0)			// -- (year, month, day, hours, minutes, seconds, milliseconds)797
798      if (!nuDateIsValid(o)) { return '' }
799
'd' used outside of binding context.
793        var t = [0, 0, 0]
794      }
795
796      const o = new Date(d[0], d[1] - 1, d[2], t[0], t[1], t[2], 0)			// -- (year, month, day, hours, minutes, seconds, milliseconds)797
798      if (!nuDateIsValid(o)) { return '' }
799
'd' used outside of binding context.
785        var d = String(v.split(' ')[0]).split('-')
786        var t = String(v.split(' ')[1]).split(':')
787      } else {
788        var d = [0, 0, 0]789        var t = String(v.split(' ')[0]).split(':')
790      }
791
'i' used outside of binding context.
658      row.shift()
659      row.pop()
660
661      if (o.deleted[i] == 0) {662        for (let ro = 0; ro < row.length; ro++) {
663          if (ro != 0) {
664            row[ro] = Number(row[ro])
'i' used outside of binding context.
653    }
654
655    for (var i = 0; i < o.rows.length; i++) {
656      var row = JSON.parse(JSON.stringify(o.rows[i]))657
658      row.shift()
659      row.pop()
'i' used outside of binding context.
652      o.columns.push(c)
653    }
654
655    for (var i = 0; i < o.rows.length; i++) {656      var row = JSON.parse(JSON.stringify(o.rows[i]))
657
658      row.shift()
'i' used outside of binding context.
652      o.columns.push(c)
653    }
654
655    for (var i = 0; i < o.rows.length; i++) {656      var row = JSON.parse(JSON.stringify(o.rows[i]))
657
658      row.shift()