X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FBuildDocs.js;h=8c8552e39bd43923087604ce4316791c25743863;hb=4874ad3e1d08502e88986231f3de271795ca2302;hp=c108b74e2c4a400f546b062a0647dcc4a78a76da;hpb=eeacd443725144328730d936474e91fbb240a046;p=gnome.introspection-doc-generator diff --git a/JSDOC/BuildDocs.js b/JSDOC/BuildDocs.js index c108b74..8c8552e 100644 --- a/JSDOC/BuildDocs.js +++ b/JSDOC/BuildDocs.js @@ -427,8 +427,8 @@ BuildDocs = { for(var i =0; i < ownMethods.length;i++) { m = ownMethods[i]; methods.push( { - name : m.name.substring(1), - sig : this.makeFuncSkel(m.params), + name : m.name, + sig : this.makeMethodSkel(m.params), type : 'function', desc : m.desc }); @@ -497,8 +497,17 @@ BuildDocs = { } ).map( function($) { return $.name == 'this' ? '_self' : $.name; } ).join(", ") + ")\n{\n\n}"; + }, + makeMethodSkel :function(params) { + if (!params) return "()"; + return "(" + + params.filter( + function($) { + return $.name.indexOf(".") == -1; // don't show config params in signature + } + ).map( function($) { return $.type + " " +( $.name == 'this' ? '_self' : $.name ); } ).join(", ") + + ")"; } - };