Roo/bootstrap/Component.js
authorEdward <edward@roojs.com>
Wed, 5 Mar 2014 08:53:52 +0000 (16:53 +0800)
committerEdward <edward@roojs.com>
Wed, 5 Mar 2014 08:53:52 +0000 (16:53 +0800)
Roo/bootstrap/Component.js

index f76cb27..ab22468 100644 (file)
@@ -68,27 +68,27 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
         
         Roo.log('run onRender'); 
         
-//        var cfg = Roo.apply({},  this.getAutoCreate());
-//        cfg.id = Roo.id();
-//        
-//        // fill in the extra attributes 
-//        if (this.xattr && typeof(this.xattr) =='object') {
-//            for (var i in this.xattr) {
-//                cfg[i] = this.xattr[i];
-//            }
-//        }
-//        
-//        if (this.cls) {
-//            cfg.cls += ' ' + this.cls;
-//        }
-//        if (this.style) { // fixme needs to support more complex style data.
-//            cfg.style = this.style;
-//        }
-//        this.el = ct.createChild(cfg, position);
-//        if(this.tabIndex !== undefined){
-//            this.el.dom.setAttribute('tabIndex', this.tabIndex);
-//        }
-//        this.initEvents();
+        var cfg = Roo.apply({},  this.getAutoCreate());
+        cfg.id = Roo.id();
+        
+        // fill in the extra attributes 
+        if (this.xattr && typeof(this.xattr) =='object') {
+            for (var i in this.xattr) {
+                cfg[i] = this.xattr[i];
+            }
+        }
+        
+        if (this.cls) {
+            cfg.cls += ' ' + this.cls;
+        }
+        if (this.style) { // fixme needs to support more complex style data.
+            cfg.style = this.style;
+        }
+        this.el = ct.createChild(cfg, position);
+        if(this.tabIndex !== undefined){
+            this.el.dom.setAttribute('tabIndex', this.tabIndex);
+        }
+        this.initEvents();
        
         
     },