Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7542] MobileWeb: View children not properly being destroyed

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-03T13:45:43.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsMobileWeb
Labelsstage
ReporterChris Barber
AssigneeChris Barber
Created2012-02-03T13:31:15.000+0000
Updated2017-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.

Comments

  1. Chris Barber 2012-02-03

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/1342
  2. Lee Morris 2017-03-03

    Closing ticket as MobileWeb is no longer supported.

JSON Source