Is .data() supported similarly to jQuery?
klihelp opened this issue · comments
klihelp commented
Is it possible to request/save data to an element?
Kyle Barrow commented
No, I've been using .attr to read/write data values. If you think .data would help though, let me know.
klihelp commented
it would be helpful, as you could use simple if ( $el.data('example') ) {}
and set data $el.data('example','value')
Kyle Barrow commented
@klihelp I've added a data method to 3.0.6