]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
CBind.js: fix cloneTemplateArray
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 31 Mar 2017 10:35:39 +0000 (12:35 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 31 Mar 2017 10:35:39 +0000 (12:35 +0200)
mixin/CBind.js

index e63c2ea6c12df63cc958da1eb7945501afd478d0..48bc7f44e5be8b94f24251f980bf2dec10c488f6 100644 (file)
@@ -83,11 +83,8 @@ Ext.define('Proxmox.Mixin.CBind', {
                        applyCBind(elcopy);
                    }
                    copy.push(elcopy);
-               } else if (el.constructor == Object && el.xtype) {
-                   elcopy = cloneTemplateObject(el);
-                   if (elcopy.cbind) {
-                       applyCBind(elcopy);
-                   }
+               } else if (el.constructor == Array) {
+                   elcopy = cloneTemplateArray(el);
                    copy.push(elcopy);
                } else {
                    copy.push(el);