CBind.js: fix cloneTemplateArray

This commit is contained in:
Dietmar Maurer 2017-03-31 12:35:39 +02:00
parent fbdf4ca751
commit 7d9225e651

View 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);