projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0192c85
)
JSDOC/BuildDocs.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 16 Jul 2010 04:14:46 +0000
(12:14 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 16 Jul 2010 04:14:46 +0000
(12:14 +0800)
JSDOC/BuildDocs.js
patch
|
blob
|
history
diff --git
a/JSDOC/BuildDocs.js
b/JSDOC/BuildDocs.js
index
cb46ee7
..
f1f4f74
100644
(file)
--- a/
JSDOC/BuildDocs.js
+++ b/
JSDOC/BuildDocs.js
@@
-401,8
+401,24
@@
BuildDocs = {
'</head><body class="highlightpage">' +
pretty +
'</body></html>');
'</head><body class="highlightpage">' +
pretty +
'</body></html>');
+ },
+ /**
+ * used by JSON output to generate a function skeleton
+ */
+ makeFuncSkel :function(params) {
+ if (!params) return "function ()\n{\n\n}";
+ return "function (" +
+ params.filter(
+ function($) {
+ return $.name.indexOf(".") == -1; // don't show config params in signature
+ }
+ ).map( function($) { return $.name == 'this' ? '_self' : $.name; } ).join(", ")
+ +
+ ")\n{\n\n}";
}
}
-
+
+}
+
};
};