From e91ab2351c30cb5c8d4e322c20d845467f09b0f4 Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 6 Oct 2015 10:52:33 +0200 Subject: [PATCH] Fixed #1343: Connected edges are now deselected too when deselecting a node --- HISTORY.md | 2 ++ dist/vis.js | 5 +++-- lib/network/modules/SelectionHandler.js | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index b8e0fdff..b1e2397a 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -4,7 +4,9 @@ http://visjs.org ## not yet released, version 4.9.1-SNAPSHOT +### Network +- Fixed #1343: Connected edges are now deselected too when deselecting a node. diff --git a/dist/vis.js b/dist/vis.js index 3388fc4b..1cd3b413 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -4,8 +4,8 @@ * * A dynamic, browser-based visualization library. * - * @version 4.9.0 - * @date 2015-10-01 + * @version 4.9.1-SNAPSHOT + * @date 2015-10-06 * * @license * Copyright (C) 2011-2015 Almende B.V, http://almende.com @@ -38771,6 +38771,7 @@ return /******/ (function(modules) { // webpackBootstrap value: function _removeFromSelection(obj) { if (obj instanceof Node) { delete this.selectionObj.nodes[obj.id]; + this._unselectConnectedEdges(obj); } else { delete this.selectionObj.edges[obj.id]; } diff --git a/lib/network/modules/SelectionHandler.js b/lib/network/modules/SelectionHandler.js index 891ec7eb..59376c54 100644 --- a/lib/network/modules/SelectionHandler.js +++ b/lib/network/modules/SelectionHandler.js @@ -277,6 +277,7 @@ class SelectionHandler { _removeFromSelection(obj) { if (obj instanceof Node) { delete this.selectionObj.nodes[obj.id]; + this._unselectConnectedEdges(obj); } else { delete this.selectionObj.edges[obj.id];