2 Responses to “Useful Javascript OO pattern”

  1. billgoates Says:

    This pattern is called a namespace, not a class. You cannot inherit from, or extend this object. It’s used for api’s or function libraries.

    It’s possible to write classes with private and public members, but they tend to be slower on creation.

  2. 2007 - A Year in Review » Jeremy Johnstone Blog Says:

    […] Christmas day) visiting family back in the midwest. Since then, I’ve been busy getting some refactoring done at work, writing a Safari SIMBL plugin for Yahoo! Search, as well as catching up on some […]

Leave a Reply