From 691fcfd39c5d30ad185b8695e849490b98e2d63f Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 31 Dec 2004 02:42:19 +0000 Subject: [PATCH] Fixed array property documentation --- exec/jsdocs.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/exec/jsdocs.js b/exec/jsdocs.js index 6d3290aadf..6b5d1512a8 100644 --- a/exec/jsdocs.js +++ b/exec/jsdocs.js @@ -178,11 +178,16 @@ function document_properties(name, obj) prop_name=name + "." + prop; if(typeof(obj[prop])=="object" && prop!="socket") { - if(obj[prop].length != undefined) // array ? - document_object(prop_name /*+ "[]"*/,obj[prop][0], "array"); - else + if(obj[prop].length!=undefined) { + if(typeof(obj[prop][0])=="object") { // array ? + document_object(prop_name /*+ "[]"*/,obj[prop][0], "array"); + continue; + } + } + else { document_object(prop_name,obj[prop]); - continue; + continue; + } } if(!prop_hdr) { properties_header(name, obj); @@ -282,6 +287,7 @@ document_object("file_area" ,file_area); document_object("xtrn_area" ,xtrn_area); document_object("MsgBase" ,new MsgBase(msg_area.grp_list[0].sub_list[0].code), "class"); document_object("File" ,new File(system.devnull), "class"); +document_object("Queue" ,new Queue(), "class"); sock=new Socket(); sock.descriptor=client.socket.descriptor; document_object("Socket" ,sock, "class"); -- GitLab