Roo/bootstrap/Component.js
[roojs1] / Roo / bootstrap / Component.js
index 77824cc..4011bb9 100644 (file)
@@ -101,7 +101,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
          
         
         var cfg = Roo.apply({},  this.getAutoCreate());
-        cfg.id = Roo.id();
+        cfg.id = this.id || Roo.id();
         
         // fill in the extra attributes 
         if (this.xattr && typeof(this.xattr) =='object') {