X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-mailer-debug.js;h=6b172f916bd42a05f5c55d3111430388c97b102c;hp=c0e560e8132a8c7d8efe7585d9b87ec4365ae853;hb=c47e24f9bde6e0a7a5994c0024daa13e7e4df117;hpb=16ea5d5dd6581bf753525641023d73c6f4a7051a diff --git a/roojs-mailer-debug.js b/roojs-mailer-debug.js index c0e560e813..6b172f916b 100644 --- a/roojs-mailer-debug.js +++ b/roojs-mailer-debug.js @@ -18,7 +18,7 @@ Roo.mailer = Roo.mailer || {}; * @param {Object} config The config object */ -_calls = 0; + Roo.mailer.Body = function(config){ Roo.mailer.Body.superclass.constructor.call(this, config); @@ -31,8 +31,9 @@ Roo.mailer.Body = function(config){ marginheight : 0, offset : 0 }); - _calls++; - if (_calls > 1) { + Roo.mailer.Body._calls++; + if (Roo.mailer.Body._calls > 1) { + return; throw "test"; } @@ -41,6 +42,8 @@ Roo.mailer.Body = function(config){ }; +Roo.mailer.Body._calls = 0; + Roo.extend(Roo.mailer.Body, Roo.bootstrap.Component, { @@ -139,9 +142,9 @@ Roo.extend(Roo.mailer.Block, Roo.bootstrap.Component, { var tr = { tag : 'tr', cls : 'roo-m-block-tr' - } + }; if (this.blocktype != 'row') { - tr.cn = [ + tr.cn = [ { tag : 'td', align : 'center', @@ -149,7 +152,7 @@ Roo.extend(Roo.mailer.Block, Roo.bootstrap.Component, { cls : 'roo-m-' + this.blocktype + '-content', html : this.html } - ] + ]; } var cfg = { @@ -316,7 +319,7 @@ Roo.extend(Roo.mailer.Column, Roo.bootstrap.Component, { var tr = { tag : 'tr', cn : [ ] - } + };