From 54e11de57bf73dabed035b2eeeab838b952a9ee1 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 9 Sep 2016 10:47:19 +0800 Subject: [PATCH] Roo/doc/Entry.js roojs-doc.js roojs-doc-debug.js --- Roo/doc/Entry.js | 2 +- roojs-doc-debug.js | 2 +- roojs-doc.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Roo/doc/Entry.js b/Roo/doc/Entry.js index 5cc018fce8..cd7262cc55 100644 --- a/Roo/doc/Entry.js +++ b/Roo/doc/Entry.js @@ -78,7 +78,7 @@ Roo.extend(Roo.doc.Entry, Roo.bootstrap.Component, { { Roo.doc.Entry._calls++; - if (Roo.doc.Entry._calls > 1) { + if (Roo.doc.Entry._calls > 1 || !ct) { return; } diff --git a/roojs-doc-debug.js b/roojs-doc-debug.js index 46ea73dee9..0a124b9ab1 100644 --- a/roojs-doc-debug.js +++ b/roojs-doc-debug.js @@ -78,7 +78,7 @@ Roo.extend(Roo.doc.Entry, Roo.bootstrap.Component, { { Roo.doc.Entry._calls++; - if (Roo.doc.Entry._calls > 1) { + if (Roo.doc.Entry._calls > 1 || !ct) { return; } diff --git a/roojs-doc.js b/roojs-doc.js index 9277f68ca7..1262578aba 100644 --- a/roojs-doc.js +++ b/roojs-doc.js @@ -1,6 +1,7 @@ // Roo/doc/Entry.js Roo.doc=Roo.doc||{};Roo.doc.Entry=function(A){Roo.doc.Entry.superclass.constructor.call(this,A);var B=Roo.get(document.body);B.attr({leftmargin:0,marginwidth:0,topmargin:0,marginheight:0,offset:0});this.onRender(B);};Roo.doc.Entry._calls=0;Roo.extend(Roo.doc.Entry,Roo.bootstrap.Component,{name:'',purpose:'',getAutoCreate:function(){var A={cls:'refentry',cn:[{tag:'h1',cls:'refname',html:this.name} -,{cls:'refnamediv',html:this.purpose}]};return A;},addxtype:function(A,B){return this.addxtypeChild(A,B);},onRender:function(ct,A){Roo.doc.Entry._calls++;if(Roo.doc.Entry._calls>1){return;}Roo.bootstrap.Component.prototype.onRender.call(this,ct,A);}}); +,{cls:'refnamediv',html:this.purpose}]};return A;},addxtype:function(A,B){return this.addxtypeChild(A,B);},onRender:function(ct,A){Roo.doc.Entry._calls++;if(Roo.doc.Entry._calls>1||!ct){return;}Roo.bootstrap.Component.prototype.onRender.call(this,ct,A);}} +); // Roo/doc/Example.js Roo.doc.Example=function(A){Roo.doc.Example.superclass.constructor.call(this,A);};Roo.extend(Roo.doc.Example,Roo.bootstrap.Component,{lang:'php',code:'',getAutoCreate:function(){var A={cls:this.lang,cn:[{tag:'code',html:String.format('{0}',this.code).replace(/\n/g,'
')} ]};return A;}}); -- 2.39.2