Chapter 14. Singleton Pattern
In Part II, "Creating and Using the JavaScript Engine," we covered two advanced ways of creating JavaScript objects, the creation of the Ajax engine, and how to debug and put the engine to use in your ...
An Overview of the Singleton Pattern
Imagine having a large-scale Ajax application with dozens of objects. In this application, you would like to add an object that handles all your Ajax updates. We will call this object the AjaxUpdater. All the o...
Creating an Object Using the Singleton Pattern
Creating a JavaScript object with the Singleton pattern is so simple and intuitive that you might not have even realized that you made one in Chapter 6, "Creating the Engine," when you creat...
Using the Singleton Object
In the previous section, we learned how to create an object using the Singleton pattern. Now we will discover how to access it from other objects in a web application. The AjaxUpdater object can be used in any other obje...
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.