roojs-core.js
[roojs1] / Roo / mailer / Body.js
index f0c4fd2..e3197cb 100644 (file)
@@ -19,6 +19,7 @@ Roo.mailer = Roo.mailer || {};
  */
 
 
+
 Roo.mailer.Body  = function(config){
     Roo.mailer.Body.superclass.constructor.call(this, config);
     //this.el = Roo.get(document.body);
@@ -30,12 +31,19 @@ Roo.mailer.Body  = function(config){
         marginheight : 0,
         offset : 0
     });
+    Roo.mailer.Body._calls++;
+    if (Roo.mailer.Body._calls > 1) {
+        return;
+        throw "test";
+    }
     
     this.onRender(body);
     this.onRender = function() { };
 
 };
 
+Roo.mailer.Body._calls = 0;
+
 Roo.extend(Roo.mailer.Body, Roo.bootstrap.Component,  {
     
     
@@ -81,9 +89,12 @@ Roo.extend(Roo.mailer.Body, Roo.bootstrap.Component,  {
         // add a child...
          
         return this.el.select('.roo-m-body-cell').first();
+    },
+    addxtype :   function (tree, cntr)
+    {
+        return this.addxtypeChild(tree,cntr);
     }
-    
-    
+