[TIMOB-7542] MobileWeb: View children not properly being destroyed
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-03T13:45:43.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Sprint 2012-03, Release 2.0.0, Release 1.8.2 |
Components | MobileWeb |
Labels | stage |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2012-02-03T13:31:15.000+0000 |
Updated | 2017-03-03T23:23:51.000+0000 |
Description
When a view is destroyed, it loops through its children, destroys them, then sets the child to null. The problem is it needs to splice() out the child instead of setting it to null otherwise you'll have conflicts where a nested destroy() will try to process the array of children where children are null. Simply removing the children from the array fixes it.
Pull request: https://github.com/appcelerator/titanium_mobile/pull/1342
Closing ticket as MobileWeb is no longer supported.