background preloader

Javascript

Facebook Twitter

Closure Tools. Again with the Module Pattern – reveal something to the world. Wednesday, August 22nd, 2007 at 2:12 am Not too long ago I was raving about the beauty of the Module Pattern in JavaScript and the annoyance I felt with it when it comes to repetition of long namespaces when calling or reading public methods and properties from other public methods and properties.

Again with the Module Pattern – reveal something to the world

To recap, the “classic” Module Pattern means you define a variable as an anonymous function that gets immediately called with ().