From c8fe42e9562dad445091cdc095e32d1e0d190ae0 Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 8 Apr 2015 13:48:11 +0200 Subject: [PATCH] Fixed titles not working when any of the nodes has id `0`. --- HISTORY.md | 4 ++++ lib/network/Network.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 98602d4a..9b992295 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -9,6 +9,10 @@ http://visjs.org - Fixed #761: Timeline and Graph2d throwing an error when locale is not found. Gives a warning message instead. +### Network + +- Fixed titles not working when any of the nodes has id `0`. + ## 2015-04-07, version 3.12.0 diff --git a/lib/network/Network.js b/lib/network/Network.js index ace182e7..9fd72c09 100644 --- a/lib/network/Network.js +++ b/lib/network/Network.js @@ -1449,7 +1449,7 @@ Network.prototype._checkShowPopup = function (pointer) { }; var id; - var previousPopupObjId = this.popupObj === undefined ? "" : this.popupObj.id; + var previousPopupObjId = this.popupObj === undefined ? undefined : this.popupObj.id; var nodeUnderCursor = false; var popupType = "node";