Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

42.3. TRY IT

In this lesson, you learn how to minimize the impact your code has on the global scope in order to reduce the likelihood of naming collisions.

42.3.1. Lesson Requirements

To practice the techniques outlined in this lesson, you will refactor the eventUtility and ajaxUtility objects to include the use of self-executing anonymous functions and pseudo-namespaces. To do this, you will change the example in Lesson 35, the car dealership search using JSON.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial