*/
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
return this.html.replace(this.re, fn);
} catch (e) {
Roo.log(e);
+ throw e;
}
- return '';
+
},
/**
}
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..