mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-28 02:30:11 +00:00
cbind: handle properties with undefined value in cloneTemplateObject
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
aedaf2b6f1
commit
f27b0f68e3
@ -110,6 +110,10 @@ Ext.define('Proxmox.Mixin.CBind', {
|
|||||||
var res = {}, prop, el, copy;
|
var res = {}, prop, el, copy;
|
||||||
for (prop in org) {
|
for (prop in org) {
|
||||||
el = org[prop];
|
el = org[prop];
|
||||||
|
if (el === undefined || el === null) {
|
||||||
|
res[prop] = el;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (el.constructor == Object && el.xtype) {
|
if (el.constructor == Object && el.xtype) {
|
||||||
copy = cloneTemplateObject(el);
|
copy = cloneTemplateObject(el);
|
||||||
if (copy.cbind) {
|
if (copy.cbind) {
|
||||||
|
Loading…
Reference in New Issue
Block a user