[ALOY-482] View-based collection binding not properly clearing children before repopulating
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2013-01-23T22:14:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.0.0, 2013 Sprint 02 |
Components | Runtime |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2013-01-22T22:26:34.000+0000 |
Updated | 2018-03-07T22:26:01.000+0000 |
Description
When running the models/journal test app, I'm getting a series of this warning in the console:
[DEBUG] [WARN] Called remove for [object container] on [object scroll], but [object container] isn't a child or has already been removed.
[DEBUG] [WARN] Called remove for [object container] on [object scroll], but [object container] isn't a child or has already been removed.
[DEBUG] [WARN] Called remove for [object container] on [object scroll], but [object container] isn't a child or has already been removed.
and in the app the entries are not being cleared after the fetch(), causing lots of duplicates to appear in the scrollview. We need to figure out a reliable way to empty all views from a proxy's view hierarchy.
The problem has been resolved in models/journal test app for ios by refactoring the add.js controller to only trigger binding once per entry, but a deeper problem still exists in iOS TIMOB that can cause this issue to appear in less scrutinized collection binding code for views. This issue has been logged as TIMOB-12399.