]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - mixin/CBind.js
cbind: handle properties with undefined value in cloneTemplateObject
[proxmox-widget-toolkit.git] / mixin / CBind.js
index 4bd4a55477de3dc86e510157908cca560a7a65af..614c6aa99dddbb7470565ab33d49e4b1e219c758 100644 (file)
@@ -110,6 +110,10 @@ Ext.define('Proxmox.Mixin.CBind', {
            var res = {}, prop, el, copy;
            for (prop in org) {
                el = org[prop];
+               if (el === undefined || el === null) {
+                   res[prop] = el;
+                   continue;
+               }
                if (el.constructor == Object && el.xtype) {
                    copy = cloneTemplateObject(el);
                    if (copy.cbind) {