From 3f54575def6cbb9fc905cc476db6d9849545c93b Mon Sep 17 00:00:00 2001 From: macleodbroad-wf Date: Tue, 8 Aug 2017 14:30:44 -0400 Subject: [PATCH] =?UTF-8?q?Fixes=20Issue=20#3316=20-=20Updates=20network?= =?UTF-8?q?=20documentation=20to=20account=20for=20edge=E2=80=A6=20(#3319)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixes Issue #3316 - Updates network documentation to account for edge-case of how clusterByConnection uses the joinCondition callback * Move the text 'clusterByConnection will pass ... callback.' to under 'Optional for all but the cluster method'. Make it clear that clusterByConnection is the only one that uses the second call. Instead of bold, make it a distinct paragraph. --- docs/network/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/network/index.html b/docs/network/index.html index 7a438717..01af8ad0 100644 --- a/docs/network/index.html +++ b/docs/network/index.html @@ -1193,9 +1193,11 @@ function releaseFunction (clusterPosition, containedNodesPositions) { Type Description - joinCondition(
  nodeOptions: Object
) + joinCondition(
  nodeOptions: Object
)
or
joinCondition(
  parentNodeOptions: Object,
  childNodeOptions: Object
) Function - Optional for all but the cluster method. The cluster module loops over all nodes that are + Optional for all but the cluster method.
+ clusterByConnection is the only function that will pass 2 nodeOptions objects as arguments to the joinCondition callback.
+ The cluster module loops over all nodes that are selected to be in the cluster and calls this function with their data as argument. If this function returns true, this node will be added to the cluster. You have access to all options @@ -1219,6 +1221,7 @@ var options = { network.clustering.cluster(options); + clusterByConnection will pass 2 nodeOptions objects as arguments to the joinCondition callback. processProperties(
  clusterOptions: Object,