Skip to content
Snippets Groups Projects
Commit fdaa5b99 authored by rswindell's avatar rswindell
Browse files

Now documents method names of objects.

parent 5e95f6f6
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,15 @@
// This script will (eventually be used to) generated HTML documentation of the
// Synchronet JavaScript object model
function document_methods(name,obj)
{
if(obj._method_list == undefined)
return;
for(method in obj._method_list)
printf("%-8s %s.%s()\r\n","",name,obj._method_list[method].name);
}
function document_object(name,obj)
{
var prop_name;
......@@ -17,6 +26,8 @@ function document_object(name,obj)
document_object(prop_name,obj[prop]);
}
}
document_methods(name,obj);
}
document_object("client" ,client);
......@@ -26,4 +37,5 @@ document_object("user" ,user);
document_object("server" ,server);
document_object("console" ,console);
document_object("msg_area" ,msg_area);
document_object("file_area" ,file_area);
\ No newline at end of file
document_object("file_area" ,file_area);
document_object("File" ,new File("bogusfile"));
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment