Roo/Template.js
[roojs1] / roojs-debug.js
index 91449e9..bd74343 100644 (file)
@@ -319,12 +319,12 @@ Roo.factory(conf, Roo.data);
          */
         log : function(s)
         {
-            if ((typeof(console) == 'undefined') || typeof(console.log) == 'undefined')) {
+            if ((typeof(console) == 'undefined') || (typeof(console.log) == 'undefined')) {
                 return; // alerT?
             }
             console.log(s);
             
-        }
+        },
         /**
          * Takes an object and converts it to an encoded URL. e.g. Roo.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2".  Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value.
          * @param {Object} o
@@ -4462,8 +4462,9 @@ Roo.Template.prototype = {
             return this.html.replace(this.re, fn);
         } catch (e) {
             Roo.log(e);
+            throw e;
         }
-        return '';
+         
     },
     
     /**
@@ -44735,7 +44736,7 @@ layout.addxtype({
         }
         if (['View', 'JsonView'].indexOf(cfg.xtype) > -1) {
             // views..
-            cfg.el = this.el;
+            cfg.el = this.el.appendChild(document.createElement("div"));
             // factory?
             var ret = new Roo[cfg.xtype](cfg);
             ret.render(false, ''); // render blank..