Roo/XTemplate.js
authorAlan Knowles <alan@akbkhome.com>
Sat, 7 Apr 2012 05:01:00 +0000 (13:01 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 7 Apr 2012 05:01:00 +0000 (13:01 +0800)
Roo/XTemplate.js

index ee765ba..8d4d4a5 100644 (file)
@@ -207,11 +207,11 @@ Roo.extend(Roo.XTemplate, Roo.Template, {
         var body;
         // branched to use + in gecko and [].join() in others
         if(Roo.isGecko){
-            body = "tpl.compiled = function(values, parent){ with(values) { return '" +
+            body = "tpl.compiled = function(values, parent){ Roo.log(values); with(values) { return '" +
                    tpl.body.replace(/(\r\n|\n)/g, '\\n').replace(/'/g, "\\'").replace(this.re, fn) +
                     "';};};";
         }else{
-            body = ["tpl.compiled = function(values, parent){ with (values) { return ['"];
+            body = ["tpl.compiled = function(values, parent){ Roo.log(values); with (values) { return ['"];
             body.push(tpl.body.replace(/(\r\n|\n)/g, '\\n').replace(/'/g, "\\'").replace(this.re, fn));
             body.push("'].join('');};};");
             body = body.join('');