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

index c54c4aa..a83e614 100644 (file)
@@ -153,7 +153,7 @@ Dynamic.Component.Form = function(cfg)
     // in theory you can use 'cfg.XXX to fill in values...' == eg. cfg.XXX || '10'
     cfg = Roo.apply(this,cfg);
     
-    Roo.apply(  { 
+    Roo.apply( cfg,  { 
         
         items : [
          {
@@ -185,7 +185,7 @@ Dynamic.Component.Form = function(cfg)
           ]
          }
         ]
-        },cfg // cfg has to be applied to the schema... otherwise we have to generate a complicated. 
+        } // cfg has to be applied to the schema... otherwise we have to generate a complicated. 
     );