From aafa4577187443fa513b54d9697ca8061e1b11fe Mon Sep 17 00:00:00 2001 From: Martin Hermant Date: Thu, 11 Oct 2018 10:09:05 +0200 Subject: [PATCH] clone : reset parser call to original api --- src/browser/js/app/widgets/containers/clone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/js/app/widgets/containers/clone.js b/src/browser/js/app/widgets/containers/clone.js index 0ee9cbc5..a3abc52d 100644 --- a/src/browser/js/app/widgets/containers/clone.js +++ b/src/browser/js/app/widgets/containers/clone.js @@ -123,8 +123,8 @@ class Clone extends Widget { this.cloneClass = [...this.cloneTarget.container.classList].filter(i=>excludedCloneClasses.indexOf(i) === -1) this.container.classList.remove('empty') this.container.classList.add(...this.cloneClass) - const propsCopy = deepCopy(this.cloneTarget.props) - var clone = parser.parse([{...propsCopy, ...this.getProp('props')}], this.widget, this,null,null,true) + + var clone = parser.parse([{...deepCopy(this.cloneTarget.props), ...this.getProp('props')}], this.widget, this) if (clone.getProp('id') === this.cloneTarget.getProp('id')) { widgetManager.trigger('change.*', [{