What is a Singleton

Oct 11, 2007 at 6:03 PM
I've been working on getting the AjaxDoc program working with our assembly, and almost have it working, but I don't know what a singleton is. Can someone give me some information on this?

In addition, in the project file when you specify the namespace, is that the namespace you use in the assembly itself, or the registered namespace you are using on the .js files you are documenting?
Coordinator
Feb 13, 2009 at 5:32 AM
A singleton is a unique instance of a class. For example, Sys.Application is the only instance of Sys._Application. The tool singles this out because what you want to appear in the docs is Sys.Application (which is an instance, not a class) instead of Sys._Application.