diff --git a/examples/network/01_basic_usage.html b/examples/network/01_basic_usage.html index 665ed785..63da51ed 100644 --- a/examples/network/01_basic_usage.html +++ b/examples/network/01_basic_usage.html @@ -53,6 +53,9 @@ data.label = data.label + "i" callback(data) } + }, + controlNodeStyle: { + shape:'square' } }}//{physics:{stabilization:false}}; var network = new vis.Network(container, data, options); diff --git a/lib/network/modules/ManipulationSystem.js b/lib/network/modules/ManipulationSystem.js index d68f1e3a..1a34b456 100644 --- a/lib/network/modules/ManipulationSystem.js +++ b/lib/network/modules/ManipulationSystem.js @@ -74,11 +74,7 @@ class ManipulationSystem { } else { this.options.enabled = true; - for (let prop in options) { - if (options.hasOwnProperty(prop)) { - this.options[prop] = options[prop]; - } - } + util.deepExtend(this.options, options); } if (this.options.initiallyVisible === true) { this.editMode = true;