component / dom

DOM traversal, manipulation and events aggregate library (like jQuery)
228 stars 49 forks source link

.data() ? #12

Closed yields closed 11 years ago

yields commented 12 years ago

Anyone here uses $.data() in jQuery ?

I implemented data component, it basically allows you to attach data to dom elements.

The problem is, if you use it a lot it will become kinda annoying because you do data(el).set().get().del() instead of dom('script').data('key', 'val').

If there is enough support i will fork this repo and add data to this lib... :)

tj commented 12 years ago

cool! I'm sure some people use it, I dont much personally