examples/bootstrap4/dynamic-components.js
authorAlan Knowles <alan@roojs.com>
Fri, 22 Feb 2019 05:04:52 +0000 (13:04 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 22 Feb 2019 05:04:52 +0000 (13:04 +0800)
examples/bootstrap4/dynamic-components.js

index 1f5c9aa..b2e912a 100644 (file)
@@ -24,12 +24,7 @@ Dynamic.Component = function(cfg)
     var STRINGS = Dynamic.Component._strings;
     Roo.apply(this,cfg);
     
-    cfg.items = []
-        // the values specified in the builder for this element go here...
-            
-            //xns : Roo.bootstrap,
-            //xtype : 'Body', << not needed...
-            items : [
+    cfg.items = [
              {
               '|xns' : 'Roo.bootstrap',
               cls : 'form-box',
@@ -105,10 +100,9 @@ Dynamic.Component = function(cfg)
               ]
          
              }
-            ]
-    }, cfg);
-
-    Dynamic.Component.superclass.constructor.call(this, config);
+            ];
+    
+    Dynamic.Component.superclass.constructor.call(this, cfg);
     
     // we can add 'events that the extended element creates here..
     this.addEvents({