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

index a83e614..79852e3 100644 (file)
@@ -151,11 +151,8 @@ Dynamic.Component.Form = function(cfg)
     var STRINGS = Dynamic.Component.Form._strings;
     
     // in theory you can use 'cfg.XXX to fill in values...' == eg. cfg.XXX || '10'
-    cfg = Roo.apply(this,cfg);
     
-    Roo.apply( cfg,  { 
-        
-        items : [
+    cfg.items : [
          {
           '|xns' : 'Roo.bootstrap',
           cls : 'body bg-gray',