possible bug in composer.recycleOnSceneChange


I think I just found a bug in composer.recycleOnSceneChange. As I understand when we set: 

composer.recycleOnSceneChange = true

display group of the scene we left after transitioning to a new scene will be destroyed, but the scene module itself should stay in memory.

My tests show that the display object is destroyed but also the scene module is removed from the memory too.

I downloaded composer-framework from the github and inspect the source code a bit.  On line 893 of composer.lua we got:


This code should be replaced with:


I tested this with builds 3434, 3326 and 3201.