list_render: Add replace_list_data().

The data() function was used in only one place,
and it can be replaced now with two simple
lines of code.
This commit is contained in:
Steve Howell
2020-04-14 23:29:34 +00:00
committed by Tim Abbott
parent d406df75b3
commit cf741e9a11
3 changed files with 12 additions and 30 deletions

View File

@@ -185,8 +185,7 @@ run_test('filtering', () => {
'fox',
];
widget.data(new_data);
widget.clean_redraw();
widget.replace_list_data(new_data);
expected_html =
'<div>greta</div>' +
'<div>gary</div>' +