From: Alan Knowles Date: Fri, 9 Sep 2016 03:30:46 +0000 (+0800) Subject: roojs-doc.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=ba5087f8a3f7cf8dc585dde3ccf12d28eb9633d2 roojs-doc.js roojs-doc-debug.js --- diff --git a/roojs-doc-debug.js b/roojs-doc-debug.js index 6330ab0ac7..34ab35971c 100644 --- a/roojs-doc-debug.js +++ b/roojs-doc-debug.js @@ -387,7 +387,7 @@ Roo.extend(Roo.doc.Section, Roo.bootstrap.Component, { // might not have any.. var params = this.parent().items[0].items; for (var i =0; i < params.length;i++) { - ul.cn.push( params[i].getAutoCreateParamSection() ) + ul.cn.push( Roo.factory(params[i]).getAutoCreateParamSection() ) } diff --git a/roojs-doc.js b/roojs-doc.js index d8031d448d..616cf5727f 100644 --- a/roojs-doc.js +++ b/roojs-doc.js @@ -14,7 +14,7 @@ Roo.doc.Param=function(A){Roo.doc.Param.superclass.constructor.call(this,A);};Ro ;return A;},getAutoCreateParamSection:function(){return {tag:'li',cn:[{tag:'p',cls:'para',cn:[{tag:'code',html:this.type+' '+this.name},this.desc]}]};}}); // Roo/doc/Section.js Roo.doc.Section=function(A){Roo.doc.Section.superclass.constructor.call(this,A);};Roo.extend(Roo.doc.Section,Roo.bootstrap.Component,{stype:'',getAutoCreate:function(){var A={cls:'refsection',cn:[{tag:'h1',cls:'title',html:Roo.doc.Section.map[this.stype]}]} -;if(this.stype=='parameter'){var ul={tag:'ul',cls:'itemizedlist roo-params',cn:[]};var B=this.parent().items[0].items;for(var i=0;i