From 3dc963ca204c89e09ba7924c8bf86d7664d580e8 Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Thu, 30 Apr 2015 16:24:38 +0200 Subject: [PATCH 1/2] disable the 'deleting' of fixed option --- lib/network/modules/components/Node.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/network/modules/components/Node.js b/lib/network/modules/components/Node.js index 9f37723c..6f017b29 100644 --- a/lib/network/modules/components/Node.js +++ b/lib/network/modules/components/Node.js @@ -195,10 +195,6 @@ class Node { } } } - else if (allowDeletion === true) { - parentOptions.fixed = undefined; - delete parentOptions.fixed; - } } updateLabelModule() { From e4b64da1b6005a811041bf189cabcf188ba03a7d Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Thu, 30 Apr 2015 16:25:14 +0200 Subject: [PATCH 2/2] reverted fix, avoidance is better --- lib/network/modules/InteractionHandler.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/network/modules/InteractionHandler.js b/lib/network/modules/InteractionHandler.js index f927291a..659dd26f 100644 --- a/lib/network/modules/InteractionHandler.js +++ b/lib/network/modules/InteractionHandler.js @@ -257,7 +257,6 @@ class InteractionHandler { yFixed: object.options.fixed.y }; - object.options.fixed = {}; object.options.fixed.x = true; object.options.fixed.y = true;