jquery data-camel-casing = camelCasing

May 14, 2011 at 7:23 PM


It seems like the latest updates to jquery html5 data attributes get will not work with the data-rateit-... values? We went through all of our code to update all html5 data objects, including our copy of rateit, when we updated to 1.6.1. 


May 15, 2011 at 9:28 AM

Hi Patrick,

RateIt has been tested on 1.6 and 1.6.1, and works great. 

The changes to jQuery don't affect RateIt.

The camelcasing only affect when getting all the data on an object:

var obj = $('#rateit').data() => here we now have obj.rateitValue 

But our reading/write via $('#rateit').data('rateit-value') is still valid, and works as before.