X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-mailer-debug.js;h=2654b4b7209ff0fb97e61a8216b5595a44b31224;hb=206b026856a0c19b284c1397f43e9fae42db52d2;hp=1ce2525b74df2a296e19da23c89b669e8ea87eb9;hpb=1c2ccd07be976ee15ccc371334d9b0fbc2e67c6f;p=roojs1 diff --git a/roojs-mailer-debug.js b/roojs-mailer-debug.js index 1ce2525b74..2654b4b720 100644 --- a/roojs-mailer-debug.js +++ b/roojs-mailer-debug.js @@ -18,6 +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); @@ -30,7 +31,13 @@ Roo.mailer.Body = function(config){ marginheight : 0, offset : 0 }); + _calls++; + if (_calls > 1) { + throw "test"; + } + this.onRender(body); + this.onRender = function() { }; }; @@ -79,9 +86,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) + { + this.addxtypeChild(tree,cntr); } - - +