* @param {Object} config The config object
*/
-_calls = 0;
+
Roo.mailer.Body = function(config){
Roo.mailer.Body.superclass.constructor.call(this, config);
marginheight : 0,
offset : 0
});
- _calls++;
- if (_calls > 1) {
+ Roo.mailer.Body._calls++;
+ if (Roo.mailer.Body._calls > 1) {
+ return;
throw "test";
}
};
+Roo.mailer.Body._calls = 0;
+
Roo.extend(Roo.mailer.Body, Roo.bootstrap.Component, {
var tr = {
tag : 'tr',
cls : 'roo-m-block-tr'
- }
+ };
if (this.blocktype != 'row') {
- tr.cn = [
+ tr.cn = [
{
tag : 'td',
align : 'center',
cls : 'roo-m-' + this.blocktype + '-content',
html : this.html
}
- ]
+ ];
}
var cfg = {
var tr = {
tag : 'tr',
cn : [ ]
- }
+ };