matrices: fix wrong children preArgs
This commit is contained in:
parent
f7cc8b9f85
commit
e67c90c611
3 changed files with 3 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ module.exports = class Keyboard extends Matrix {
|
|||
data.id = this.getProp('id') + '/' + i
|
||||
data.label = false
|
||||
data.address = this.getProp('split') ? '@{parent.address}/' + i : '@{parent.address}'
|
||||
data.preArgs = this.getProp('split') ? '@{parent.preArg}' : '#{concat(@{parent.preArg}),' + i + '}'
|
||||
data.preArgs = this.getProp('split') ? '@{parent.preArgs}' : '#{concat(@{parent.preArgs},[' + i + '])}'
|
||||
data.css = ''
|
||||
|
||||
var key = parser.parse([data], this.widget, this)
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ module.exports = class Multipush extends Matrix {
|
|||
data.id = this.getProp('id') + '/' + i
|
||||
data.label = i
|
||||
data.address = this.getProp('split') ? '@{parent.address}/' + i : '@{parent.address}'
|
||||
data.preArgs = this.getProp('split') ? '@{parent.preArg}' : '#{concat(@{parent.preArg}),' + i + '}'
|
||||
data.preArgs = this.getProp('split') ? '@{parent.preArgs}' : '#{concat(@{parent.preArgs},[' + i + '])}'
|
||||
data.css = ''
|
||||
|
||||
var push = parser.parse([data], this.widget, this)
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ module.exports = class Multitoggle extends Matrix {
|
|||
data.id = this.getProp('id') + '/' + i
|
||||
data.label = i
|
||||
data.address = this.getProp('split') ? '@{parent.address}/' + i : '@{parent.address}'
|
||||
data.preArgs = this.getProp('split') ? '@{parent.preArg}' : '#{concat(@{parent.preArg}),' + i + '}'
|
||||
data.preArgs = this.getProp('split') ? '@{parent.preArgs}' : '#{concat(@{parent.preArgs},[' + i + '])}'
|
||||
data.css = ''
|
||||
|
||||
var toggle = parser.parse([data], this.widget, this)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue