smalos / nubuilder_dev

Should not have unused variables JS-0128
Bug risk
Major
9 months ago2 years old
'index' is defined but never used
 727		o.edited = [];
 728		o.deleted = [];
 729
 730		$(sel).each(function (index) { 731
 732			var THIS = $(this);
 733			var dnpk = $(this).attr('data-nu-primary-key');
'index' is defined but never used
 633
 634		var s = [''];
 635
 636		$("[data-nu-subform='true']").each(function (index) { 637			s.push($(this)[0].id);
 638		});
 639
'index' is defined but never used
 486		var t = [];
 487		var fld = [];
 488
 489		$('.nuBox').each(function (index) { 490
 491			var b = $(this)[0].id;
 492			var T = $('#tablename' + b).val();
'index' is defined but never used
 459		var fld = [];
 460
 461		const sqlFrameContents = $('#sqlframe').contents();
 462		sqlFrameContents.find('.nuBox').each(function (index) { 463
 464			var b = $(this)[0].id;
 465			var a = sqlFrameContents.find('#alias' + b).val();
'nuGetProperty' is defined but never used
1158
1159}
1160
1161function nuGetProperty(f) {1162
1163	let v = nuFORM.getProperty(f);
1164	return v;