matrix: use "$" instead of "i" to represent the index (#320)
This commit is contained in:
parent
75d0e99aa5
commit
0015b2fc22
2 changed files with 3 additions and 3 deletions
|
|
@ -95,10 +95,10 @@ class Matrix extends _matrix_base {
|
|||
var hashes = [...this.childrenHashes]
|
||||
this.childrenHashes = []
|
||||
|
||||
for (var i in hashes) {
|
||||
for (var i = 0; i < hashes.length; i++) {
|
||||
|
||||
let widget = widgetManager.widgets[hashes[i]],
|
||||
data = this.resolveProp('props', undefined, false, false, false, {'i':i})
|
||||
data = this.resolveProp('props', undefined, false, false, false, {'$':i})
|
||||
|
||||
Object.assign(widget.props, data)
|
||||
widget.updateProps(Object.keys(data), this)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue