From 573d355827fb3e021e64634d2d56ab4c5d9d2c7e Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Mon, 4 Jan 2016 14:23:26 +0100 Subject: [PATCH] - Fixed #1404, made the array returned by findNode match the docs. --- HISTORY.md | 1 + dist/vis.js | 2 ++ lib/network/modules/Clustering.js | 2 ++ 3 files changed, 5 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index 4f0e5055..c4f26785 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -15,6 +15,7 @@ http://visjs.org - Fixed findNode method. It now does not return internal objects anymore. - Fixed #1529, clustering and declustering now respects the original settings of the edges for physics and hidden. - Fixed #1406, control nodes are now drawn immediately without a second redraw. +- Fixed #1404, made the array returned by findNode match the docs. ## 2015-12-18, version 4.11.0 diff --git a/dist/vis.js b/dist/vis.js index 12b97bff..8c86dbb7 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -36500,6 +36500,8 @@ return /******/ (function(modules) { // webpackBootstrap counter++; } stack.push(nodeId); + stack.reverse(); + return stack; } diff --git a/lib/network/modules/Clustering.js b/lib/network/modules/Clustering.js index 61bb790a..d7c844e1 100644 --- a/lib/network/modules/Clustering.js +++ b/lib/network/modules/Clustering.js @@ -691,6 +691,8 @@ class ClusterEngine { counter++; } stack.push(nodeId); + stack.reverse(); + return stack; }