Closed domoran closed 8 years ago
Mongo DBs will return ObjectID instances for _id, where jsTree needs a string. The getItemId function will check for a valueOf function on the ID to return the plain string if necessary.
Thanks for providing this improvement as PR! Happy coding!
Mongo DBs will return ObjectID instances for _id, where jsTree needs a string. The getItemId function will check for a valueOf function on the ID to return the plain string if necessary.