瀏覽代碼

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

dzzinstant 9 年之前
父節點
當前提交
d170204b31
共有 1 個文件被更改,包括 1 次插入1 次删除
  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