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;