Roo/doc/Entry.js
authorAlan Knowles <alan@roojs.com>
Fri, 9 Sep 2016 02:47:19 +0000 (10:47 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 9 Sep 2016 02:47:19 +0000 (10:47 +0800)
roojs-doc.js
roojs-doc-debug.js

Roo/doc/Entry.js
roojs-doc-debug.js
roojs-doc.js

index 5cc018f..cd7262c 100644 (file)
@@ -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;
         }
         
index 46ea73d..0a124b9 100644 (file)
@@ -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;
         }
         
index 9277f68..1262578 100644 (file)
@@ -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,'<br/>')}
 ]};return A;}});