-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Network - options object unexpectedly modified by network.setOptions #1660
Comments
Hi, the hierarchical layout is altering the options but it seems the reverting is not done correctly. Well look into this. Thank you for reporting! Regards
|
same here |
I'm closing this issue due to inactivity. |
This is still relevant. My uninformed opinion is that it seems like vis.js should clone the incoming settings object upon reception so that any intentional or accidental modifications to the settings are not leaked back to the user object being passed in. |
I agree, opening it again. |
Hello.
The options object is being unexpectedly modified to invalid options when calling
network.setOptions
.https://jsfiddle.net/4jtopnmj/4/
To reproduce:
smooth
config is altered duringnetwork.setOptions
.The text was updated successfully, but these errors were encountered: