roojs-core.js
[roojs1] / Roo / mailer / Body.js
index 47a7828..e3197cb 100644 (file)
@@ -2,12 +2,10 @@
  * - LGPL
  *
  * element
- * <!-- BEGIN TEMPLATE // -->
-                       <table border="0" cellpadding="0" cellspacing="0" id="templateContainer">
-                               <tr>
-                               <td align="center" valign="top">
                               
  */
+Roo.mailer = Roo.mailer || {};
 
 /**
  * @class Roo.mailer.BodyContainer 
@@ -20,7 +18,7 @@
  * @param {Object} config The config object
  */
 
-Roo.mailer = Roo.mailer || {};
+
 
 Roo.mailer.Body  = function(config){
     Roo.mailer.Body.superclass.constructor.call(this, config);
@@ -33,10 +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,  {
     
     
@@ -82,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);
     }
-    
-    
+