From abaf30f344f5e80d24ed657a0b8df57302bb9e19 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Sun, 2 Jan 2022 15:54:29 -0800 Subject: [PATCH] Document properties even when then have a value of 'null' --- exec/jsdocs.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/exec/jsdocs.js b/exec/jsdocs.js index 9a42d2976d..1d47191403 100644 --- a/exec/jsdocs.js +++ b/exec/jsdocs.js @@ -194,13 +194,12 @@ function document_properties(name, obj, type) prop_name=name + "." + prop; - if(typeof(obj[prop])=="object" + if(typeof(obj[prop])=="object" + && obj[prop] !== null && prop!="socket" && prop!="global" && prop!="scope" ) { - if(obj[prop]===null) - continue; if(obj[prop].length!=undefined) { if(typeof(obj[prop][0])=="object") { // array ? document_object(prop_name /*+ "[]"*/,obj[prop][0], "array"); -- GitLab