* - 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
* @param {Object} config The config object
*/
-Roo.mailer = Roo.mailer || {};
+
Roo.mailer.Body = function(config){
Roo.mailer.Body.superclass.constructor.call(this, config);
//this.el = Roo.get(document.body);
-
- Roo.get(document.body).attr({
+ var body = Roo.get(document.body);
+ body.attr({
leftmargin : 0,
marginwidth : 0,
topmargin : 0,
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, {
// add a child...
return this.el.select('.roo-m-body-cell').first();
+ },
+ addxtype : function (tree, cntr)
+ {
+ return this.addxtypeChild(tree,cntr);
}
-
-
+