Skip to content
Snippets Groups Projects
Commit 671fdbfa authored by Michele Alberti's avatar Michele Alberti
Browse files

Merge branch 'fix/dome/array-api' into 'master'

Fix dome array api

See merge request frama-c/frama-c!2744
parents 75b7205a 94dadd0c
No related branches found
No related tags found
No related merge requests found
......@@ -448,13 +448,18 @@ export class CompactModel<Key, Row> extends ArrayModel<Key, Row> {
Requires a final trigger to update views. */
updateData(data: Collection<Row>) {
forEach(data, (row: Row) => this.setData(this.getkey(row), row));
this.reload();
}
/**
Replace all previous data with the new one.
Replace all previous data with the new ones.
Finally triggers a reload.
*/
replaceAllDataWith(data: Collection<Row>) {
this.removeAllData();
this.updateData(data);
this.reload();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment