före d = $('#dicesvalue').val().split(',') _web.reportDices [ parseInt(d[0]), parseInt(d[1]), parseInt(d[2]), parseInt(d[3]), parseInt(d[4]) ] efter d = $('#dicesvalue').val().split(',') d = d.map (x) -> parseInt(x) _web.reportDices d