widget: fix preArgs property still being coerced to an array
This commit is contained in:
parent
06204e9b66
commit
200d5ba401
2 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue