From 1b95803619d44e7576b9fc243b297e2f1c3aaabb Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 9 Sep 2016 10:49:44 +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 0a124b9ab1..15d39e6240 100644 --- a/roojs-doc-debug.js +++ b/roojs-doc-debug.js @@ -30,6 +30,7 @@ Roo.doc.Entry = function(config){ marginheight : 0, offset : 0 }); + this.el = body; // call onRender once... and block next call...? this.onRender(body); @@ -73,7 +74,6 @@ Roo.extend(Roo.doc.Entry, Roo.bootstrap.Component, { return this.addxtypeChild(tree,cntr); }, - onRender : function(ct, position) { diff --git a/roojs-doc.js b/roojs-doc.js index 1262578aba..45f3ae6121 100644 --- a/roojs-doc.js +++ b/roojs-doc.js @@ -1,5 +1,5 @@ // 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} +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.el=B;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||!ct){return;}Roo.bootstrap.Component.prototype.onRender.call(this,ct,A);}} ); // Roo/doc/Example.js -- 2.39.2