I want to associate each node in my tree with a domain object. I passed HTML data and manually saved the domain object in jQuery data:
$('li node description').data('obj', my_domain_object);
However, it seems that jsTree is clearing the data in time $('#jstree_div').jstree();.
So $('li node description').data('obj')- undefined.
What is the best practice? (I assume that the principle will be the same for HTML or JSON data)
source
share