Populate/empty of dataBinderArray does not remove visual elements #228
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
experiment
suggestion
support
Testing
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/framework#228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If we try to populate data into a
dataBinderArray
that already contains data, the new data is put in place correctly, but the new visual elements are appended to the old ones. This is due to two problems:empty()
internally, so there is no extra work done when emptying the array. We simply replace the internal element container with an empty one.empty()
method just removes elements from the internal element container. No extra work is done.Fix should be, get populate to call
empty()
first to empty the array correctly.empty()
can then be updated to remove elements in the same way that anunset()
orpop()
does which will pull the visual elements off the item list as well.created merge request !117 to address this issue
mentioned in merge request !117
mentioned in commit a922680792862c125134f5177f8ded9dc6bc72b9