I want to associate each node in my tree with a domain object. I was passing HTML data and manually storing the domain object in jQuery data:$('li node description').data('obj', my_domain_object);
However, it seems that jsTree clears that data out during$('#jstree_div').jstree();
.
So later,$('li node description').data('obj')
is undefined.
What's the best practice to do this with HTML data? Or maybe should I just use JSON data?
data.node.data.some_key
... Sorry for this inconvenience.