> By the way, how to kill the instance from the memory? You don't, the singleton pattern is strictly for things that are intended to live until the application terminates. This is the only way to ensure you always get the same instance. Theme management is obviously a good fit for the pattern as it has to be there until you are done with the app.
In other cases, it might be good to keep around some objects in memory because some browsers *cough*IE*cough* often keep things in memory way past the time they should have made them disappear so it's a good idea to reuse the memory that's already allocated. Use common sense, a login window serves no purpose once the application started but a config window could be reused. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel