hexaflip
hexaflip copied to clipboard
instance.setValue does strange behavior
https://github.com/crapthings/test-hexa-flip
i try to play with demo4
when i setValue like
opt =
set1: 2
set2: 1
set3: 3
username.setValue opt
will always set too the last item in array, so it slides to 3 3 3
set = [
{
value: 0,
style: {
backgroundColor: '#e67e22'
}
},
{
value: 1,
style: {
backgroundColor: '#1ABC9C'
}
},
{
value: 2,
style: {
backgroundColor: '#f1c40f'
}
},
{
value: 3,
style: {
backgroundColor: '#2ECC71'
}
}
];
setValue doesnt work if value is Number ?