isudatateam / datateam

Consider using arrow functions for callbacks JS-0241
Anti-pattern
Minor
3 months ago3 months old
Unexpected function expression
180	}
181};
182
183$(document).ready(function(){184	build_ui();185});
Unexpected function expression
170	// https://stackoverflow.com/questions/7862233
171	// Change hash for page-reload
172	var prefix = "tab_";
173	$('.nav-tabs.maintabs a').on('shown.bs.tab', function (e) {174	    window.location.hash = e.target.hash.replace("#", "#" + prefix);175	})176	// Read any hash links
177	var hash = document.location.hash;
178	if (hash) {
Unexpected function expression
 55		data.agronomic.push($(elem).val());
 56	});
 57	// Which soil are checked
 58	$('#soil-ui input:checked').each(function(idx, elem){ 59		data.soil.push($(elem).val()); 60	}); 61
 62	return data;
 63}
Unexpected function expression
 51		data.water.push($(elem).val());
 52	});
 53	// Which agronomic are checked
 54	$('#agronomic-ui input:checked').each(function(idx, elem){ 55		data.agronomic.push($(elem).val()); 56	}); 57	// Which soil are checked
 58	$('#soil-ui input:checked').each(function(idx, elem){
 59		data.soil.push($(elem).val());
Unexpected function expression
 47		data.treatments.push($(elem).val());
 48    });
 49	// Which water are checked
 50	$('#water-ui input:checked').each(function(idx, elem){ 51		data.water.push($(elem).val()); 52	}); 53	// Which agronomic are checked
 54	$('#agronomic-ui input:checked').each(function(idx, elem){
 55		data.agronomic.push($(elem).val());