Javascript Namespaces
One of the big problems as the number of toolkits that you can use in your RIA increases is variable collision. Constructing your classes and widgets in the form of a namespace reduces the risk that the global variables you are using … Continue reading
Creating a JavaScript Singleton object
If we want to create a singleton object, i.e. there can only every be one instance of it that is referenced by a global variable, in JavaScript it is very easy. We simply declare the class function inline, returning a … Continue reading