kylebarrow / chibi

A tiny JavaScript micro-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is .data() supported similarly to jQuery?

klihelp opened this issue · comments

Is it possible to request/save data to an element?

No, I've been using .attr to read/write data values. If you think .data would help though, let me know.

it would be helpful, as you could use simple if ( $el.data('example') ) {} and set data $el.data('example','value')

@klihelp I've added a data method to 3.0.6