From 266c6370fb7fbf42e2e9a4806c6781da21d647de Mon Sep 17 00:00:00 2001 From: "Cristhyan D. Marchena" Date: Mon, 20 May 2024 00:42:48 -0500 Subject: [PATCH] fix(GoldbergTarjanPushRelabelAlgorithm): debug check on s/t node click the source/target selection was broken due to a invalid check of the `isDebug` method, the if was checking the reference and not the returned value --- .../js/GoldbergTarjanPushRelabelAlgorithm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/implementation/maxflow-push-relabel/js/GoldbergTarjanPushRelabelAlgorithm.js b/implementation/maxflow-push-relabel/js/GoldbergTarjanPushRelabelAlgorithm.js index 5bf6988..820b710 100644 --- a/implementation/maxflow-push-relabel/js/GoldbergTarjanPushRelabelAlgorithm.js +++ b/implementation/maxflow-push-relabel/js/GoldbergTarjanPushRelabelAlgorithm.js @@ -125,7 +125,7 @@ function GoldbergTarjanPushRelabelAlgorithm(svgSelection,svgSelection2) { * attach onClick listeners so we can select start/target node * @override */ - if(!isDebug){ + if(!isDebug()){ this.onNodesEntered = function(selection) { //select source and target nodes selection @@ -696,4 +696,4 @@ GoldbergTarjanPushRelabelAlgorithm.prototype = Object.create((isDebug() ? GraphE GoldbergTarjanPushRelabelAlgorithm.prototype.constructor = GoldbergTarjanPushRelabelAlgorithm; //Global variable zuweisen -GraphAlgorithm = GoldbergTarjanPushRelabelAlgorithm; \ No newline at end of file +GraphAlgorithm = GoldbergTarjanPushRelabelAlgorithm;