From 7d9225e651835b905ad974e068346d612b88b0e0 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 31 Mar 2017 12:35:39 +0200 Subject: [PATCH] CBind.js: fix cloneTemplateArray --- mixin/CBind.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mixin/CBind.js b/mixin/CBind.js index e63c2ea..48bc7f4 100644 --- a/mixin/CBind.js +++ b/mixin/CBind.js @@ -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); -- 2.39.2