From 827a99d5ef98808f080b15b5b166eba5d0812b9d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 9 Sep 2016 11:18:43 +0800 Subject: [PATCH] roojs-doc.js roojs-doc-debug.js --- roojs-doc-debug.js | 2 +- roojs-doc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roojs-doc-debug.js b/roojs-doc-debug.js index a44bfc61cb..6330ab0ac7 100644 --- a/roojs-doc-debug.js +++ b/roojs-doc-debug.js @@ -385,7 +385,7 @@ Roo.extend(Roo.doc.Section, Roo.bootstrap.Component, { cn : [] }; // might not have any.. - var params = this.parent.items[0].items; + var params = this.parent().items[0].items; for (var i =0; i < params.length;i++) { ul.cn.push( params[i].getAutoCreateParamSection() ) } diff --git a/roojs-doc.js b/roojs-doc.js index 15aa445091..d8031d448d 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