matrices: missing children index definition

This commit is contained in:
jean-emmanuel 2018-11-20 09:49:58 +01:00
parent 0838576342
commit 7433c40481
4 changed files with 4 additions and 0 deletions

View file

@ -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') {

View file

@ -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

View file

@ -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')

View file

@ -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')