robotlegs / robotlegs-framework

An ActionScript 3 application framework for Flash and Flex
https://robotlegs.tenderapp.com/
MIT License
967 stars 261 forks source link

Child injectors in CommandExecutor are not destroyed #174

Open fljot opened 9 years ago

fljot commented 9 years ago

https://github.com/robotlegs/robotlegs-framework/blob/master/src/robotlegs/bender/extensions/commandCenter/impl/CommandExecutor.as#L48

Here you create child injector (which is nice, because you can define custom mappings in the "scope" of command execution), but it's not destroyed anywhere. Maybe it would be even better to create child injector in executeCommands() and call childInjector.tearDown() in the end of this method? Or some disposal method for CommandExecutor.