Sfoglia il codice sorgente

Fix comparison: if (d.clients === 0) return does nothing

dzzinstant 9 anni fa
parent
commit
d170204b31
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/forcegraph.js

+ 1 - 1
lib/forcegraph.js

@@ -285,7 +285,7 @@ define(["d3"], function (d3) {
       ctx.beginPath()
       nodes.filter(visibleNodes).forEach(function (d) {
         var clients = d.o.node.statistics.clients
-        if (d.clients === 0)
+        if (clients === 0)
           return
 
         var distance = 16