From 134b70fbfb4e8d89890028760b9e7ce32aaf2233 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 9 Sep 2016 10:42:11 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js roojs-doc.js roojs-doc-debug.js --- roojs-doc-debug.js | 4 ++-- roojs-doc.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roojs-doc-debug.js b/roojs-doc-debug.js index 3b144c35fc..f367b5f4d1 100644 --- a/roojs-doc-debug.js +++ b/roojs-doc-debug.js @@ -30,8 +30,8 @@ Roo.doc.Entry = function(config){ marginheight : 0, offset : 0 }); - Roo.mailer.Body._calls++; - if (Roo.mailer.Body._calls > 1) { + Roo.doc.Entry._calls++; + if (Roo.doc.Entry._calls > 1) { throw "test"; } // call onRender once... and block next call...? diff --git a/roojs-doc.js b/roojs-doc.js index d1227fc333..3e04567ef1 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});Roo.mailer.Body._calls++;if(Roo.mailer.Body._calls>1){throw "test"; +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});Roo.doc.Entry._calls++;if(Roo.doc.Entry._calls>1){throw "test"; }this.onRender(B);this.onRender=function(){};};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);}}); // Roo/doc/Example.js -- 2.39.2