widget: fix preArgs property still being coerced to an array

This commit is contained in:
jean-emmanuel 2018-05-09 19:33:27 +02:00
parent 06204e9b66
commit 200d5ba401
2 changed files with 2 additions and 6 deletions

View file

@ -49,11 +49,6 @@ class Widget extends EventEmitter {
this.hash = shortid.generate()
this.childrenHashes = []
// Turn preArgs into array
if (this.props.preArgs !== undefined && !Array.isArray(this.resolveProp('preArgs', undefined, false))) {
this.props.preArgs = [this.props.preArgs]
}
// strip parent ? no position
if (this.parent && this.parent.props && this.parent.props.type == 'strip') {
delete this.props.top