Closed bhoodream closed 11 years ago
Hey @bhoodream can you give an example of how the data-colors
attribute could be an array. I tried it locally and couldn't get anything to work.
var arr = [1,2,3], swatch = $('.swatch'); swatch.data('colors', arr); console.log(typeof swatch.data('colors'));
Ahh, that makes more sense. Love it.
Hi, I think, You should check value of data-colors, because it can be an array...