This is combined with jquery-ui drag & drop widgets, so when the element is dropped I listen to the event that gives me the element being dragged as a jquery object.
Given this the logical thing to do is accessing it like: element.data('event'), but it gives me [object Object].
Even tried to access it likeelement.data('event').id and get undefined.
How you guys store objects in data attributes and later access it?