almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

Fix `useDefaultGroups` option in Groups module #4280

Open mashlol opened 5 years ago

mashlol commented 5 years ago

The docs (http://visjs.org/docs/network/groups.html#) indicate that if useDefaultGroups is passed as false, it will iterate through the provided groups to use as defaults instead. But the code doesn't seem to match that description, as useDefaultGroups is ignored, and the code that handles it being false doesn't seem quite right (it should fetch the full group, not just the color)