matrices: missing children index definition
This commit is contained in:
parent
0838576342
commit
7433c40481
4 changed files with 4 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ module.exports = class Keyboard extends _matrix_base {
|
|||
parent: this
|
||||
})
|
||||
|
||||
key._index = i - start
|
||||
key.container.classList.add('not-editable')
|
||||
|
||||
if (pattern[i % 12] == 'w') {
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ module.exports = class Multifader extends _matrix_base {
|
|||
parentNode: this.widget,
|
||||
parent: this
|
||||
})
|
||||
fader._index = i - start
|
||||
fader.container.classList.add('not-editable')
|
||||
|
||||
this.value[i-start] = this.getProp('range').min
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ module.exports = class Multipush extends _matrix_base {
|
|||
parent: this
|
||||
})
|
||||
|
||||
push._index = i - start
|
||||
push.container.classList.add('not-editable')
|
||||
|
||||
this.value[i - start] = this.getProp('off')
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ module.exports = class Multitoggle extends _matrix_base {
|
|||
parentNode: this.widget,
|
||||
parent: this
|
||||
})
|
||||
toggle._index = i - start
|
||||
toggle.container.classList.add('not-editable')
|
||||
|
||||
this.value[i-start] = this.getProp('off')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue