]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
skip config property for cbind mixin
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 20 Feb 2018 08:48:19 +0000 (09:48 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Feb 2018 09:14:58 +0000 (10:14 +0100)
if we use a component with cbind in a static declaration,
we do not want to traverse the 'config' property, as this can lead
to properties of base classes which produce errors on copying

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
mixin/CBind.js

index ecf30e23c5035e2e0eb13de10451e1bba0623a74..6f217cf471c698e20aae5e8ada7119c05229e802 100644 (file)
@@ -133,7 +133,7 @@ Ext.define('Proxmox.Mixin.CBind', {
                el = me[prop];
                if (el === undefined || el === null) continue;
                if (typeof(el) === 'object' && el.constructor == Object) {
-                   if (el.xtype) {
+                   if (el.xtype && prop != 'config') {
                        me[prop] = cloneTemplateObject(el);
                    }
                } else if (el.constructor == Array) {