Roo/mailer/Body.js
authorAlan Knowles <alan@roojs.com>
Thu, 18 Sep 2014 09:27:53 +0000 (17:27 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 18 Sep 2014 09:27:53 +0000 (17:27 +0800)
Roo/mailer/Body.js

index 87057ea..3d39959 100644 (file)
@@ -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,11 @@ Roo.mailer.Body  = function(config){
         marginheight : 0,
         offset : 0
     });
-    throw "test";
+    _calls++;
+    if (calls > 1) {
+        throw "test";
+    }
+    
     this.onRender(body);
     this.onRender = function() { };