From 65d266f36716d79673cf2d8b7610f3f86464afb5 Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Thu, 27 Jun 2013 14:10:23 +0200 Subject: [PATCH] GraphViewer: Added a check for the cursor-following edge when connnecting nodes, which did cause a crash in other browsers than FF --- html/admin/js/graphViewer/graph/edgeShaper.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/html/admin/js/graphViewer/graph/edgeShaper.js b/html/admin/js/graphViewer/graph/edgeShaper.js index 1bd0a48fd6..bde1dee2c3 100644 --- a/html/admin/js/graphViewer/graph/edgeShaper.js +++ b/html/admin/js/graphViewer/graph/edgeShaper.js @@ -369,8 +369,10 @@ function EdgeShaper(parent, flags, idfunc) { }; self.removeCursorFollowingEdge = function() { - followEdge.remove(); - followEdge = {}; + if (followEdge.remove) { + followEdge.remove(); + followEdge = {}; + } }; }