Roo/bootstrap/Component.js
authorAlan Knowles <alan@roojs.com>
Wed, 2 Dec 2015 02:20:05 +0000 (10:20 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 2 Dec 2015 02:20:05 +0000 (10:20 +0800)
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') {