* and is used as the component id. Otherwise, it is assumed to be a standard config object and is applied to the component.
*/
Roo.Component = function(config){
* and is used as the component id. Otherwise, it is assumed to be a standard config object and is applied to the component.
*/
Roo.Component = function(config){
config = config || {};
if(config.tagName || config.dom || typeof config == "string"){ // element object
config = {el: config, id: config.id || config};
config = config || {};
if(config.tagName || config.dom || typeof config == "string"){ // element object
config = {el: config, id: config.id || config};