louisstow/Crafty — pull request #186 by lapilofu (2012-01-20 01:17:55+00:00)
Title: Uninitialize scene functions.

Added a parameter to Crafty.scene which allows developers to specify a function that will run when a scene uninitializes. This gives developers the option to define an uninitialize function for each scene which gets called in between 2D components being destroyed and the next scene being initialized.

This should not create any backwards incompatibilities. If you only define scenes with one function, the API is exactly the same.