Skip to content

Commit 971dc25

Browse files
committed
do not store item references in view's onChangedConnection
1 parent aba9a38 commit 971dc25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/ListView.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ BaseView {
322322
}
323323
}
324324
}
325-
this.connectOnChanged(item, 'width', update.bind(this, true), true) //skip initial update
326-
this.connectOnChanged(item, 'height', update.bind(this, false), true) //skip initial update
325+
item.onChanged('width', update.bind(this, true), true) //skip initial update
326+
item.onChanged('height', update.bind(this, false), true) //skip initial update
327327
return item
328328
}
329329

core/TableView.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ BaseView {
5555
}
5656
}
5757
}
58-
this.connectOnChanged(item, 'width', updateX.bind(this), true) //skip initial update
59-
this.connectOnChanged(item, 'height', updateY.bind(this), true) //skip initial update
58+
item.onChanged('width', updateX.bind(this), true) //skip initial update
59+
item.onChanged('height', updateY.bind(this), true) //skip initial update
6060
return item
6161
}
6262

0 commit comments

Comments
 (0)