nathanvda/cocoon — Issue #35: Problems with fetching link data via jquery.data method
Author: torm3nt
Created: 2012-02-07 07:06:22+00:00
State: open

Hi Nathan!

I tried using your library today in combination with formtastic and I had a number of problems - all related to the data method. For some reason - whenever I queried manually for the a data attributes, they would always returned nil - which made your library almost useless. I updated the javascript so that it uses $.attr('data-whatever') instead and now it works fine.

If you like I can provide this update - which I don't particularly like as data should have worked, but it seems to be a problem?