From 4f1729172154ecf705a5ab9f182053dd9d9f3130 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 14 Oct 2016 11:23:49 +0800 Subject: [PATCH] roojs-doc.js roojs-doc-debug.js --- roojs-doc-debug.js | 3 ++- roojs-doc.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roojs-doc-debug.js b/roojs-doc-debug.js index 61b19159b2..1c6d268af9 100644 --- a/roojs-doc-debug.js +++ b/roojs-doc-debug.js @@ -600,8 +600,9 @@ Roo.extend(Roo.doc.Synopsis, Roo.bootstrap.Component, { Roo.doc.NavCategory = function(config){ Roo.doc.Para.superclass.constructor.call(this, config); + Roo.doc.NavCategory.registry[this.name] = this; }; - +Roo.doc.NavCategory.registry = {}; Roo.extend(Roo.doc.NavCategory, Roo.bootstrap.Component, { title : '', diff --git a/roojs-doc.js b/roojs-doc.js index f6eec661cd..792acbc073 100644 --- a/roojs-doc.js +++ b/roojs-doc.js @@ -22,5 +22,5 @@ Roo.doc.Synopsis=function(A){Roo.doc.Synopsis.superclass.constructor.call(this,A var B=(this.is_static?'':'$')+this.memberof+(this.is_static?'::':'->');var C={tag:'h5',cls:'refsynopsisdiv',cn:[{cls:'funcsynopsis',cn:[{tag:'p',cn:{tag:'code',cls:'funcprototype',cn:[this.returntype+' '+B,{tag:'strong',cls:this.stype,html:this.name},'(',{tag:'span',cls:'roo-params'} ,')']}}]}]};return C;},getChildContainer:function(A){return this.el.select('.roo-params',true).first();}}); // Roo/doc/NavCategory.js -Roo.doc.NavCategory=function(A){Roo.doc.Para.superclass.constructor.call(this,A);};Roo.extend(Roo.doc.NavCategory,Roo.bootstrap.Component,{title:'',name:'',getAutoCreate:function(){var A={cn:[{tag:'a',cls:'roo-nav-category',href:'#'+this.name,html:this.title} +Roo.doc.NavCategory=function(A){Roo.doc.Para.superclass.constructor.call(this,A);Roo.doc.NavCategory.registry[this.name]=this;};Roo.doc.NavCategory.registry={};Roo.extend(Roo.doc.NavCategory,Roo.bootstrap.Component,{title:'',name:'',getAutoCreate:function(){var A={cn:[{tag:'a',cls:'roo-nav-category',href:'#'+this.name,html:this.title} ,{cls:'container roo-child-ctr'}]};return A;},getChildContainer:function(){return this.el.select('.roo-child-ctr',true).first();}}); -- 2.39.2