qnipp / meteor-treeview

This is a Blaze template to be used to display a tree (using jsTree) right from a collection.
MIT License
9 stars 8 forks source link

Fix for newer Mongo DB versions #1

Closed domoran closed 8 years ago

domoran commented 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.

fknipp commented 8 years ago

Thanks for providing this improvement as PR! Happy coding!