[pve-devel] applied: [PATCH widget-toolkit] skip config property for cbind mixin
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Feb 22 11:39:07 CET 2018
applied
On 2/20/18 9:48 AM, Dominik Csapak wrote:
> 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 at proxmox.com>
> ---
> mixin/CBind.js | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mixin/CBind.js b/mixin/CBind.js
> index ecf30e2..6f217cf 100644
> --- a/mixin/CBind.js
> +++ b/mixin/CBind.js
> @@ -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) {
>
More information about the pve-devel
mailing list