widget: fix preArgs property still being coerced to an array
This commit is contained in:
parent
26d9f06fd2
commit
34b7b2b76c
2 changed files with 2 additions and 6 deletions
|
|
@ -5,7 +5,8 @@
|
|||
- bug fixes
|
||||
- regression breaking touch traversing gestures
|
||||
- clone widgets becomming unselectable for edition
|
||||
|
||||
- `preArgs` property still being coerced to an array
|
||||
|
||||
## 0.30.3
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -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