swiz teardown sets up prototype beans that have event handlers

Description

When calling swiz.teardown(), prototype beans that have event handlers get constructed. Attached is a sample application to demonstrate the problem.

It's happening in EventHandlerProcessor.as on line 114. When trying to remove event handlers, it calls bean.source which has a getter with logic to setup the bean if it is not set up yet.

Environment

Windows 7, Flex 4.5.1

Status

Assignee

ChrisC

Reporter

Jeffrey Barrus

Labels

None

Affects versions

Priority

Minor
Configure