mjsarfatti/nestedSortable — pull request #104 by treygeorge (2013-09-14 17:14:25+00:00)
Title: Expanding output object when using toHierarchy

My team needed a bit more information on the objects that we were sorting. We did this through data attributes on the li's. We thought it would be real nice to add that information automatically to the output object on toHierarchy. We thought other people might think it convenient as well.

All we did for was add a $.each().data() loop on the item passed into "toHierarchy". We can then loop through the captured items and add them to the currentItem object as properties.

Loving nestedSortable so far. It is working really well for us. Thanks!