Swiz non singleton prototype defined beans torn down when view is torn down.

Description

Would be nice that Swiz automatically torn down prototype defined non singleton beans when the view is torn down. Maybe this could also prevent memory leak since beans could be kept alive because they could be listeners of some event, in this case when the PreDestroy decorated method is run the removeEventListener code could be excecuted to allow Flash garbage collector to remove this beans from memory.

See:
http://groups.google.com/group/swiz-framework/browse_thread/thread/43a24ca03a6b43d2?hl=en

Environment

Flex 4 sdk Air For Android app

Status

Assignee

ChrisC

Reporter

FedericoJ

Labels

None

Affects versions

Priority

Major
Configure